/* ==========================================================================
   Aktifys «original» (kald-li-726) — reproduces the 2019 Betheme «Healthy» look of aktifys.no
   on Elementor containers. Every number below was measured on the live site with
   scripts/inspect-live.py (computed styles at 1440 / 1100 / 800 / 390 px), not eyeballed.
   Grid: Betheme section_wrapper 1220 px (≥1240) · 940 (960–1239) · 708 (768–959) · fluid with 33 px gutters (<768).
   Columns: width % + 1 % side margins + 40 px bottom margin (Muffin .column).
   ========================================================================== */
:root { --ak-ink: #2a4d5c; --ak-text: #576674; --ak-orange: #ffaa6f; --ak-line: #eff6fa; }

html, body { margin: 0; }
body { font-family: "Poppins", Arial, sans-serif; font-size: 15px; line-height: 26px; font-weight: 400; color: var(--ak-text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--ak-ink); text-decoration: none; }
a:hover { color: var(--ak-orange); }
img { max-width: 100%; height: auto; }
b, strong { font-weight: 700; }

/* ---------- Elementor containers → Muffin grid ---------- */
.elementor .e-con.ak-section { --display: block; display: block; position: relative; }
.elementor .e-con.ak-sw { width: 100%; max-width: 1220px; margin-left: auto; margin-right: auto; }
.elementor .e-con.ak-wrap { --gap: 0px; }
/* D8 (Stian 2026-11-10, deliberate deviation from 1:1): one straight content edge. Muffin's 1 % column margin is 1 % of the
   *wrap*, so text in a ⅓ wrap started 8 px further left than the cards above it. The gutter is now a fixed 1 % of the
   1220 px row (--ak-gut) everywhere, and the column keeps its share of the wrap: width = Muffin width + 2 % − 2 × gutter. */
:root { --ak-gut: 12px; }
.elementor .e-con.ak-col { margin: 0 var(--ak-gut) 40px; --align-items: stretch; width: calc(var(--width) + 2% - 2 * var(--ak-gut)) !important; }
.elementor .e-con.ak-wrap--divider { width: 100%; height: 0; }
.elementor .e-con.ak-col.ak-col--divider { margin-bottom: 0; }
/* JetEngine therapist grid: Muffin wraps had «padding: 0 1%» of the 1220 px row → 2 % / 3 % of a ½ / ⅓ grid item */
.ak-grid--2 .ak-tp, .ak-grid--3 .ak-tp { padding: 0; } /* D8: photos start on the same edge as the heading */
.ak-tp { text-align: left; }
/* D9: photo in a rounded 4:5 box, as on the /aktifys mockup (.person__img: radius 18, sage→sand gradient, cover) */
.elementor .e-con.ak-tp__photo { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #DCE3DE, #E7DCCD); margin-bottom: 25px; }
.ak-tp__photo .ak-tp__img, .ak-tp__photo .ak-tp__img img { width: 100%; height: 100%; }
.ak-tp__photo .ak-tp__img img { object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ak-tp:hover .ak-tp__img img { transform: scale(1.04); }
.elementor .e-con.ak-tp .ak-col--image { margin-bottom: 0; }

.elementor .e-con.ak-col > .elementor-widget { width: 100%; max-width: 100%; }
@media (max-width: 1239px) { .elementor .e-con.ak-sw { max-width: 940px; } :root { --ak-gut: 9px; } }
@media (max-width: 959px)  { .elementor .e-con.ak-sw { max-width: 708px; } :root { --ak-gut: 7px; } }
@media (max-width: 767px)  {
	.elementor .e-con.ak-sw { max-width: none; padding-left: 33px !important; padding-right: 33px !important; }
	:root { --ak-gut: 0px; }
	.elementor .e-con.ak-col { margin: 0 0 20px; width: 100% !important; }
}
/* Muffin .hide-tablet .hide-mobile (the three front-page cards are not shown below 960 px on the live site) */
/* (D12) the cards now show on every screen – they carry the «uten henvisning» and primærkontakt messages */

/* ---------- typography (h1–h6, p) — Betheme sizes, then its responsive scaling (×0.85 tablet, ×0.6 mobile, min 13 px) ---------- */
.ak-h .elementor-heading-title, .ak-text, .ak-text p { font-family: "Poppins", Arial, sans-serif; }
.ak-h .elementor-heading-title { color: var(--ak-ink); font-weight: 500; margin: 0; padding: 0; }
.ak-h .elementor-heading-title a { color: inherit; }
.ak-h1 .elementor-heading-title { font-size: 65px; line-height: 75px; }
.ak-h2 .elementor-heading-title { font-size: 48px; line-height: 58px; }
.ak-h3 .elementor-heading-title { font-size: 30px; line-height: 40px; }
.ak-h4 .elementor-heading-title { font-size: 21px; line-height: 31px; }
.ak-h5 .elementor-heading-title { font-size: 18px; line-height: 28px; }
.ak-h6 .elementor-heading-title { font-size: 16px; line-height: 26px; }
.ak-text { font-size: 15px; line-height: 26px; color: var(--ak-text); }
.ak-text p { margin: 0 0 15px; }
.ak-text > .elementor-widget-container > *:last-child, .ak-text p:last-child { margin-bottom: 15px; }
.ak-text a { color: var(--ak-ink); }
.ak-text a:hover { color: var(--ak-orange); }
.ak-img img { display: inline; vertical-align: baseline; }
.ak-img, .ak-img .elementor-widget-container { line-height: 0; }
.ak-hr { --spacer-size: 16px; }
.elementor-widget-heading .elementor-heading-title a:hover { color: var(--ak-orange); }
@media (max-width: 959px) and (min-width: 768px) {
	.ak-h1 .elementor-heading-title { font-size: 55px; line-height: 64px; }
	.ak-h2 .elementor-heading-title { font-size: 41px; line-height: 49px; }
	.ak-h3 .elementor-heading-title { font-size: 26px; line-height: 34px; }
	.ak-h4 .elementor-heading-title { font-size: 18px; line-height: 26px; }
	.ak-h5 .elementor-heading-title { font-size: 15px; line-height: 24px; }
	.ak-h6 .elementor-heading-title { font-size: 14px; line-height: 22px; }
	.ak-text { font-size: 13px; line-height: 22px; }
}
@media (max-width: 767px) {
	.ak-h1 .elementor-heading-title { font-size: 39px; line-height: 45px; }
	.ak-h2 .elementor-heading-title { font-size: 29px; line-height: 35px; }
	.ak-h3 .elementor-heading-title { font-size: 18px; line-height: 24px; }
	.ak-h4 .elementor-heading-title, .ak-h5 .elementor-heading-title, .ak-h6 .elementor-heading-title { font-size: 13px; line-height: 19px; }
	.ak-text { font-size: 13px; line-height: 19px; }
}

/* ---------- front-page cards (D8): the button sits at the same height in all three cards ---------- */
.elementor .e-con.ak-card { display: flex; flex-direction: column; }
.ak-card .ak-hr:has(+ .ak-btn) { display: none; }
.elementor .e-con.ak-card > .ak-btn { margin-top: auto !important; padding-top: 30px; }

/* ---------- buttons ---------- */
/* Betheme a.button: inline-block (+8 px line-box below it) with margin-bottom 15 px */
.ak-btn { margin-bottom: 23px !important; }
.ak-btn .elementor-button { font-family: "Poppins", Arial, sans-serif; font-size: 15px; line-height: 26px; font-weight: 400; color: var(--ak-ink); background: transparent; border: 2px solid var(--ak-ink); border-radius: 3px; padding: 11px 20px; transition: background-color .3s, color .3s; fill: currentColor; }
.ak-btn .elementor-button:hover, .ak-btn .elementor-button:focus { background: var(--ak-ink); color: #fff; }
@media (max-width: 959px) { .ak-btn .elementor-button { font-size: 13px; line-height: 19px; padding: 11px 20px; } }

/* ---------- hero (Slider Revolution «Home Healthy», one slide: grid 1080 × 1040, scales below 1080 px) ---------- */
.elementor .e-con.ak-hero { --display: block; display: block; position: relative; overflow: hidden; height: 1040px; background-position: 50% 35% !important; background-size: cover !important; }
.elementor .e-con.ak-hero__grid { position: absolute; top: 0; left: 50%; width: 1080px; height: 1040px; margin-left: -540px; transform-origin: 0 0; }
.ak-layer { position: absolute !important; width: auto !important; margin: 0 !important; }
.ak-layer .elementor-heading-title { color: var(--ak-ink); font-family: "Poppins", Arial, sans-serif; white-space: nowrap; }
.ak-layer--kicker { right: 447px; top: 186px; }
.ak-layer--kicker .elementor-heading-title { font-size: 16px; line-height: 22px; font-weight: 500; }
.ak-layer--title { right: 26px; top: 210px; }
.ak-layer--title .elementor-heading-title { font-size: 80px; line-height: 85px; font-weight: 500; }
.ak-layer--lead { left: 624px; top: 409px; }
.ak-layer--lead .elementor-heading-title { font-size: 24px; line-height: 30px; font-weight: 400; }
.ak-layer--btn1 { left: 637px; top: 604px; }
.ak-layer--btn2 { left: 819px; top: 604px; }
.ak-hero-btn .elementor-button { font-family: "Poppins", Arial, sans-serif; font-size: 16px; line-height: 17px; font-weight: 500; color: #fff; background: var(--ak-ink); border-radius: 3px; padding: 15px 35px; transition: background-color .3s, color .3s; }
.ak-hero-btn .elementor-button:hover { background: var(--ak-orange); color: var(--ak-ink); }
@media (max-width: 1079px) {
	.elementor .e-con.ak-hero { height: calc(100vw * 1040 / 1080); }
	.elementor .e-con.ak-hero__grid { left: 0; margin-left: 0; transform: scale(var(--ak-hero-scale, 1)); }
}

/* ---------- header (Theme Builder) ---------- */
.ak-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.elementor .e-con.ak-header__bar { width: 100%; max-width: 1220px; margin: 0 auto; flex-direction: row; align-items: flex-start; position: relative; }
.ak-logo { width: auto !important; margin: 36px 0 0 var(--ak-gut) !important; line-height: 0; } /* D8: same edge as the content (live: 32 px) */
.ak-logo img { width: 72px; height: auto; display: block; }
.ak-nav { width: auto !important; margin-left: 107px !important; } /* nav stays where it was */
.ak-nav .elementor-nav-menu--main .elementor-item { font-family: "Poppins", Arial, sans-serif; font-size: 20px; line-height: 60px; font-weight: 500; color: var(--ak-ink); padding: 55px 20px; }
.ak-nav .elementor-nav-menu--main .elementor-item:hover, .ak-nav .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--ak-orange); }
.ak-nav .elementor-nav-menu--main .elementor-item::before, .ak-nav .elementor-nav-menu--main .elementor-item::after { display: none !important; }
.ak-toggle { display: none; position: absolute; top: 68px; right: 221px; width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ak-ink); }
.ak-toggle svg { width: 34px; height: 34px; display: block; }
@media (max-width: 1239px) {
	.elementor .e-con.ak-header__bar { max-width: 940px; }
	.ak-nav { display: none !important; }
	.ak-toggle { display: block; }
}
@media (max-width: 959px) { .elementor .e-con.ak-header__bar { max-width: 708px; } }
@media (max-width: 767px) {
	.ak-header { position: static; background: #fff; }
	.elementor .e-con.ak-header__bar { max-width: none; justify-content: center; min-height: 120px; }
	.ak-logo { margin: 10px auto 10px !important; }
	.ak-toggle { top: 43px; right: 20px; }
}
/* side slide menu (Betheme #Side_slide: fixed right, 250 px, petrol) */
.ak-side { position: fixed; top: 0; right: -250px; bottom: 0; width: 250px; background: var(--ak-ink); z-index: 1001; transition: right .3s; overflow-y: auto; padding-top: 60px; }
.ak-side.is-open { right: 0; }
.ak-side-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1000; display: none; }
.ak-side-overlay.is-open { display: block; }
.ak-side__close { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border: 0; background: none; color: var(--ak-orange); cursor: pointer; padding: 0; }
.ak-side .elementor-nav-menu--layout-vertical .elementor-item { font-family: "Poppins", Arial, sans-serif; font-size: 13px; line-height: 19px; font-weight: 500; color: var(--ak-orange); padding: 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.ak-side .elementor-nav-menu--layout-vertical .elementor-item.elementor-item-active, .ak-side .elementor-item:hover { color: #fff; }
.ak-side .elementor-item::before, .ak-side .elementor-item::after { display: none !important; }

/* ---------- footer (Theme Builder) ---------- */
/* the live footer starts 15 px below the content (Betheme's empty .the_content section) */
.ak-footer { margin-top: 15px; }
.elementor .e-con.ak-footer__widgets { width: 100%; max-width: 1220px; margin: 0 auto; flex-direction: row; padding: 70px 0 !important; }
.elementor .e-con.ak-footer__col { width: calc(50% - 2 * var(--ak-gut)); margin: 0 var(--ak-gut); }
.ak-footer h6, .ak-footer .elementor-heading-title { font-family: "Poppins", Arial, sans-serif; font-size: 16px; line-height: 26px; font-weight: 500; color: var(--ak-ink); margin: 0 0 5px; }
.ak-footer .ak-big p { font-size: 16px; line-height: 28px; margin: 0 0 15px; color: var(--ak-ink); }
.ak-footer .ak-big a { color: var(--ak-ink); }
.ak-footer .ak-big a:hover { color: var(--ak-orange); }
.ak-footer__logo img { width: 147px; height: auto; display: block; }
.ak-footer__copy { border-top: 1px solid rgba(0, 0, 0, .1); }
.elementor .e-con.ak-footer__copyin { width: 100%; max-width: calc(1220px - 2 * var(--ak-gut)); margin: 0 auto; flex-direction: row; justify-content: space-between; align-items: flex-start; padding: 38px 0 12px !important; min-height: 33px; }
.ak-copyright, .ak-copyright p { font-size: 15px; line-height: 26px; font-weight: 700; color: var(--ak-ink); margin: 0; width: auto !important; }
.ak-copyright a { color: #7f5ca7; }
.ak-top { width: auto !important; margin-top: -9px !important; }
.ak-top .elementor-button { width: 46px; height: 46px; padding: 0; border: 2px solid var(--ak-ink); border-radius: 0; background: transparent; color: var(--ak-ink); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 42px; }
.ak-top .elementor-button:hover { background: var(--ak-ink); color: #fff; }
.ak-top .elementor-button svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 1239px) { .elementor .e-con.ak-footer__widgets { max-width: 940px; } .elementor .e-con.ak-footer__copyin { max-width: calc(940px - 2 * var(--ak-gut)); } }
@media (max-width: 959px)  { .elementor .e-con.ak-footer__widgets { max-width: 708px; } .elementor .e-con.ak-footer__copyin { max-width: calc(708px - 2 * var(--ak-gut)); } }
@media (max-width: 767px)  {
	.elementor .e-con.ak-footer__widgets { flex-direction: column; padding: 70px 33px !important; }
	.elementor .e-con.ak-footer__col { width: 100%; margin: 0 0 30px; }
	.ak-footer h6, .ak-footer .elementor-heading-title, .ak-footer .ak-big p { font-size: 13px; line-height: 19px; }
	.elementor .e-con.ak-footer__copyin { flex-direction: column-reverse; align-items: center; text-align: center; padding: 30px 33px 20px !important; }
	.ak-top { margin: 0 0 20px !important; }
	.ak-copyright, .ak-copyright p { font-size: 13px; line-height: 19px; }
}
