/*
 * Visual system reconstructed from the captured Alvisstad /hemstadning/ output.
 * This is intentionally a translation of the existing Divi result: colours,
 * spacing, patterned surfaces, wave dividers, type scale and chrome are not a
 * new design direction.
 */
:root {
  --alvis-page: #ffffff;
  --alvis-ink: #282828;
  --alvis-green: #3b9117;
  --alvis-nav: #309e1a;
  --alvis-lime: #7cda24;
  --alvis-link: #0c71c3;
  --alvis-topbar: #282828;
  --alvis-footer: #111111;
  --alvis-soft-green: rgba(32, 191, 11, .07);
  --alvis-content: 1080px;
  --alvis-text: 850px;
  --alvis-gutter: clamp(20px, 4vw, 48px);
  --alvis-pattern-small: url("data:image/svg+xml;base64,PHN2ZyAgZmlsbD0icmdiYSgwLDAsMCwwLjAxKSIgaGVpZ2h0PSI4MHB4IiB3aWR0aD0iODBweCIgdmlld0JveD0iMCAwIDgwIDgwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My4wcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0wLDhWMEg4QTgsOCwwLDAsMSwwLDhaTTgwLDhWMEg3MkE4LDgsMCwwLDAsODAsOFpNMCw3MnY4SDhBOCw4LDAsMCwwLDAsNzJaTTQwLDMyYTgsOCwwLDEsMCw4LDhBOCw4LDAsMCwwLDQwLDMyWk04MCw3MmE4LDgsOCwwLDAtOCw4aDhaIi8+PC9zdmc+");
  --alvis-pattern-square: url("data:image/svg+xml;base64,PHN2ZyAgZmlsbD0icmdiYSgwLDAsMCwwLjAxKSIgaGVpZ2h0PSI3MnB4IiB3aWR0aD0iNzJweCIgdmlld0JveD0iMCAwIDcyIDcyIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My4wcmcvMjAwMC9zdmciPjxwb2x5Z29uIHBvaW50cz0iNDAgMjQgMzIgMjQgMzIgMzIgMjQgMzIgMjQgNDAgMzIgNDAgMzIgNDggNDAgNDggNDAgNDAgNDggNDAgNDggM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zLTY0MC04NC4zQzU5LjQuNTkgMjguMiAxLjYgMCAzLjRWMTQwaDEyODB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMjQuMzFjNDMuNDYtNS42OSA5NC41Ni05LjI1IDE1OC40Mi05LjI1IDMyMCAwIDMyMCA4OS4yNCA2NDAgODkuMjQgMjU2LjEzIDAgMzA3LjI4LTU3LjE2IDQ4MS41OC04MFYxNDBIMHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMTI4MCA1MS43NmMtMjAxIDEyLjQ5LTI0Mi40MyA1My40LTUxMy41OCA1My40LTMyMCAwLTMyMC01Ny02NDAtNTctNDguODUuMDEtOTAuMjEgMS4zNS0xMjYuNDIgMy42VjE0MGgxMjgweiIvPjwvZz48L3N2Zz4=");
}

html, body, .wp-site-blocks { overflow-x: clip; }
html { scroll-behavior: smooth; }
body,
.editor-styles-wrapper {
  margin: 0;
  color: var(--alvis-ink);
  background: var(--alvis-page);
  font-family: "Overpass", Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* Full-width structural canvas; readable width belongs inside each block. */
.alvis-main,
.alvis-main > .wp-block-post-content,
.alvis-main .entry-content,
.wp-block-post-content {
  width: 100%;
  max-width: none !important;
  margin: 0;
}
.alvis-main > .wp-block-post-content > .alvis-block,
.alvis-main .entry-content > .alvis-block,
.wp-block-post-content > .alvis-block {
  position: relative;
  display: block;
  clear: both;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw) !important;
  box-sizing: border-box;
}

.alvis-block { position: relative; box-sizing: border-box; }
.alvis-shell {
  width: min(calc(100% - (var(--alvis-gutter) * 2)), var(--alvis-content));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.alvis-shell--narrow { width: min(calc(100% - (var(--alvis-gutter) * 2)), var(--alvis-text)); }
.alvis-shell--wide { width: min(calc(100% - (var(--alvis-gutter) * 2)), 1200px); }

/* Captured pale-green Divi background and white wave transitions. */
.alvis-surface--base { background: #fff; }
.alvis-surface--muted {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: var(--alvis-soft-green);
  background-image: var(--alvis-pattern-small);
  background-repeat: repeat;
}
.alvis-surface--muted::before,
.alvis-surface--muted::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  background-size: 100% 100px;
  background-repeat: no-repeat;
}
.alvis-surface--muted::before { top: 0; background-image: var(--alvis-wave-top); }
.alvis-surface--muted::after { bottom: 0; background-image: var(--alvis-wave-bottom); }
.alvis-surface--brand { color: #fff; background: var(--alvis-nav); }
.alvis-surface--dark { color: #fff; background: var(--alvis-footer); }

/* Existing imported hero: same captured pale surface plus its lower divider. */
.alvis-hero {
  padding: 66px 0 128px;
  color: var(--alvis-ink);
  background-color: var(--alvis-soft-green);
  background-image: var(--alvis-pattern-small);
  background-repeat: repeat;
}
.alvis-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100px;
  background: var(--alvis-wave-bottom) no-repeat bottom / 100% 100px;
  pointer-events: none;
}
.alvis-hero .alvis-shell { z-index: 2; }

.alvis-space--compact { padding-block: 42px; }
.alvis-space--regular { padding-block: 75px; }
.alvis-space--large { padding-block: 96px; }
.alvis-surface--muted.alvis-space--compact,
.alvis-surface--muted.alvis-space--regular,
.alvis-surface--muted.alvis-space--large { padding-top: max(100px, var(--alvis-space-top, 100px)); padding-bottom: max(100px, var(--alvis-space-bottom, 100px)); }

.alvis-block h1,
.alvis-block h2,
.alvis-block h3,
.alvis-block h4,
.alvis-block h5,
.alvis-block h6 { color: var(--alvis-ink); font-family: "Overpass", Helvetica, Arial, Lucida, sans-serif; }
.alvis-block h1 { margin: 0 0 1.1rem; color: #158e21; font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.alvis-block h2 { margin: 0 0 1.15rem; font-size: clamp(27px, 3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
.alvis-block h3 { margin: 1.65rem 0 .6rem; font-size: 23px; font-weight: 800; line-height: 1.25; }
.alvis-block h4,
.alvis-block h5,
.alvis-block h6 { margin: 1.25rem 0 .45rem; font-size: 17px; font-weight: 800; line-height: 1.3; }
.alvis-block p { margin: 0 0 1.1rem; }
.alvis-block ul,
.alvis-block ol { margin: .4rem 0 1.25rem; padding-left: 1.2em; }
.alvis-block li { margin-bottom: .2rem; }
.alvis-block a { color: var(--alvis-link); }
.alvis-block strong { font-weight: 800; }
.alvis-block .wp-block-heading { max-width: none; }
.alvis-block .wp-block-buttons { margin-top: 1.35rem; margin-bottom: 0; }

/* Captured Section headings were centred; text itself remains normal editorial content. */
.alvis-section > .alvis-shell > .wp-block-heading:first-child { text-align: center; }
.alvis-surface--muted > .alvis-shell > .wp-block-heading:first-child,
.alvis-surface--muted h2,
.alvis-surface--muted h3 { color: var(--alvis-green); }
.alvis-section .wp-block-columns {
  gap: clamp(32px, 6vw, 88px);
  margin-top: 32px;
  margin-bottom: 0;
}
.alvis-section .wp-block-column > :first-child { margin-top: 0; }

/* Button treatment from captured Divi CSS: white field, blue label, 10px radius. */
.alvis-button,
.alvis-block .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 14px 42px !important;
  border: 1px solid #fff !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 2px 30px -10px rgb(0 0 0 / .3);
  color: var(--alvis-link) !important;
  font-family: "Overpass", Helvetica, Arial, Lucida, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.alvis-button:hover,
.alvis-button:focus-visible,
.alvis-block .wp-block-button__link:hover,
.alvis-block .wp-block-button__link:focus-visible { border-color: var(--alvis-link) !important; color: var(--alvis-link) !important; }
.alvis-button--secondary { background: transparent !important; border-color: currentColor !important; color: currentColor !important; box-shadow: none; }
.alvis-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.alvis-hero__grid,
.alvis-media__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .9fr); align-items: center; gap: clamp(40px, 7vw, 100px); }
.alvis-hero__content,
.alvis-media__content,
.alvis-hero__visual,
.alvis-media__visual { min-width: 0; }
.alvis-hero__visual,
.alvis-media__visual { display: grid; place-items: center; }
.alvis-hero__image,
.alvis-media__image { display: block; max-width: 100%; height: auto; }
.alvis-hero__image { width: min(100%, 420px); }
.alvis-highlights { display: grid; gap: 5px; margin: 20px 0 0; padding: 0; list-style: none; font-weight: 500; }
.alvis-highlights li { display: flex; gap: 8px; margin: 0; }
.alvis-highlights li::before { content: "✔"; color: var(--alvis-ink); font-weight: 800; }
.alvis-intro > :last-child { margin-bottom: 0; }

.alvis-media { padding-block: 80px; }
.alvis-media--left .alvis-media__visual { order: -1; }
.alvis-media__image { width: min(100%, 390px); max-height: 420px; object-fit: contain; }
.alvis-media--cover .alvis-media__image { width: 100%; max-width: 520px; max-height: none; object-fit: cover; }
.alvis-media--contain .alvis-media__image { object-fit: contain; }
.alvis-media .wp-block-heading:first-child { margin-top: 0; }

.alvis-review-embed { padding: 34px 0 52px; }
.alvis-review-embed .alvis-shell { width: min(calc(100% - (var(--alvis-gutter) * 2)), 960px); }
.alvis-review-embed h2 { color: var(--alvis-ink); font-size: 24px; font-weight: 700; text-align: center; }
.alvis-placeholder { margin: 0 auto; padding: 13px 18px; border: 1px solid #d7d7d7; border-radius: 2px; background: #fafafa; color: #666; font-size: 14px; text-align: center; }

.alvis-card-grid,
.alvis-image-grid { display: grid; gap: 28px; }
.alvis-card-grid--2,.alvis-image-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.alvis-card-grid--3,.alvis-image-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.alvis-card-grid--4,.alvis-image-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.alvis-card { padding: 26px; border: 1px solid #e7e7e7; background: #fff; }
.alvis-card__image { max-width: 100%; height: auto; }
.alvis-card__link { color: var(--alvis-link); font-weight: 700; }
.alvis-image-grid img { width: 100%; height: auto; }
.alvis-image-grid--rounded img { border-radius: 50%; }

.alvis-faq { padding-block: 75px; }
.alvis-faq .alvis-shell { width: min(calc(100% - (var(--alvis-gutter) * 2)), 850px); }
.alvis-faq h2 { text-align: center; }
.alvis-faq__item { border-bottom: 1px solid #ddd; }
.alvis-faq__item summary { padding: 17px 0; cursor: pointer; font-weight: 700; }
.alvis-faq__answer { padding: 0 0 18px; }

/* The old final conversion section is an understated pale patterned band, not a teal redesign. */
.alvis-cta.alvis-surface--brand,
.alvis-cta.alvis-surface--muted {
  color: var(--alvis-ink);
  background-color: var(--alvis-soft-green);
  background-image: var(--alvis-pattern-small);
}
.alvis-cta.alvis-surface--brand::before,
.alvis-cta.alvis-surface--brand::after { content: none; }
.alvis-cta .alvis-shell { width: min(calc(100% - (var(--alvis-gutter) * 2)), 900px); }
.alvis-cta h2 { color: var(--alvis-green); }

/* Formidable forms inherit the captured simple field rhythm once bound. */
.alvis-form .alvis-shell { width: min(calc(100% - (var(--alvis-gutter) * 2)), 850px); }
.alvis-form input,
.alvis-form textarea,
.alvis-form select { width: 100%; box-sizing: border-box; border: 1px solid #d5d5d5; border-radius: 0; padding: 12px 14px; font: inherit; }

/* Site chrome reconstructed from the captured header/footer instead of generic WP title/navigation. */
.alvis-chrome-header { background: var(--alvis-topbar); color: #fff; font-family: "Overpass", Helvetica, Arial, Lucida, sans-serif; }
.alvis-chrome-header__top { min-height: 116px; background: var(--alvis-topbar); }
.alvis-chrome-header__inner,
.alvis-chrome-footer__inner { width: min(calc(100% - (var(--alvis-gutter) * 2)), 1180px); margin: 0 auto; }
.alvis-chrome-header__top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 116px; }
.alvis-chrome-header__contact { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; }
.alvis-chrome-header__contact a { color: #fff; text-decoration: none; }
.alvis-chrome-header__logo { display: block; width: 185px; }
.alvis-chrome-header__logo img { display: block; width: 100%; height: auto; }
.alvis-chrome-header__offer { justify-self: end; display: inline-flex; padding: 13px 36px; border-radius: 10px; background: #fff; color: var(--alvis-link); font-size: 16px; font-weight: 700; text-decoration: none; text-transform: uppercase; box-shadow: 0 2px 30px -10px rgb(0 0 0 / .3); }
.alvis-chrome-header__nav { position: relative; z-index: 5; background: var(--alvis-nav); box-shadow: 0 6px 18px -6px rgb(0 0 0 / .3); }
.alvis-primary-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; min-height: 58px; margin: 0; padding: 0; list-style: none; }
.alvis-primary-menu > li { position: relative; margin: 0; padding: 0; }
.alvis-primary-menu a { display: block; padding: 18px 16px; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: 1px; line-height: 1; text-decoration: none; }
.alvis-primary-menu > li:hover > a,
.alvis-primary-menu > li:focus-within > a { color: #edf000; }
.alvis-primary-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 20; display: none; min-width: 240px; margin: 0; padding: 10px 0; list-style: none; background: #fff; box-shadow: 0 12px 26px rgb(0 0 0 / .18); }
.alvis-primary-menu .sub-menu a { padding: 12px 16px; color: var(--alvis-ink); font-size: 14px; letter-spacing: 0; }
.alvis-primary-menu li:hover > .sub-menu,
.alvis-primary-menu li:focus-within > .sub-menu { display: block; }

.alvis-chrome-footer { position: relative; padding-top: 115px; color: #fff; background: var(--alvis-footer); }
.alvis-chrome-footer::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100px; background: var(--alvis-wave-top) no-repeat top / 100% 100px; }
.alvis-chrome-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 64px; padding-bottom: 70px; text-align: center; }
.alvis-chrome-footer h2 { margin: 0 0 8px; color: var(--alvis-lime); font-size: 18px; font-weight: 800; }
.alvis-chrome-footer p { margin: 0 0 16px; color: #fff; font-size: 15px; }
.alvis-chrome-footer a { color: var(--alvis-lime); }
.alvis-chrome-footer__logo { display: block; width: min(100%, 250px); margin: 0 auto 20px; }
.alvis-chrome-footer__logo img { display: block; width: 100%; height: auto; }
.alvis-chrome-footer__bottom { padding: 8px 0; background: rgb(0 0 0 / .87); font-size: 14px; }
.alvis-chrome-footer__bottom .alvis-chrome-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.alvis-socials { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.alvis-socials a { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; font-size: 0; text-decoration: none; }
.alvis-socials a::before { font-size: 13px; font-weight: 800; }
.alvis-socials .facebook { background:#3b5998; }.alvis-socials .facebook::before { content:"f"; }
.alvis-socials .instagram { background:#ea2c59; }.alvis-socials .instagram::before { content:"◎"; }
.alvis-socials .linkedin { background:#007bb6; }.alvis-socials .linkedin::before { content:"in"; }

@media (max-width: 980px) {
  .alvis-chrome-header__top { min-height: 88px; }
  .alvis-chrome-header__top-inner { min-height: 88px; grid-template-columns: 1fr auto; }
  .alvis-chrome-header__contact { display: none; }
  .alvis-chrome-header__logo { width: 145px; }
  .alvis-chrome-header__offer { padding: 10px 20px; font-size: 13px; }
  .alvis-primary-menu { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .alvis-primary-menu a { padding: 16px 12px; font-size: 14px; white-space: nowrap; }
  .alvis-hero__grid, .alvis-media__grid { grid-template-columns: 1fr; gap: 36px; }
  .alvis-media--left .alvis-media__visual { order: 0; }
  .alvis-hero__content, .alvis-media__content { max-width: 720px; }
  .alvis-hero__visual { order: -1; }
  .alvis-hero__image { width: min(100%, 340px); }
  .alvis-media__image { width: min(100%, 330px); }
  .alvis-card-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .alvis-hero { padding-top: 45px; padding-bottom: 104px; }
  .alvis-space--regular, .alvis-media, .alvis-faq { padding-block: 52px; }
  .alvis-surface--muted { padding-top: 88px; padding-bottom: 88px; }
  .alvis-block h1 { font-size: 40px; }
  .alvis-block h2 { font-size: 28px; }
  .alvis-section .wp-block-columns { gap: 26px; }
  .alvis-card-grid--2,.alvis-card-grid--3,.alvis-card-grid--4,.alvis-image-grid--2,.alvis-image-grid--3,.alvis-image-grid--4 { grid-template-columns: 1fr; }
  .alvis-chrome-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 44px; }
  .alvis-chrome-footer__bottom .alvis-chrome-footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
