/* ==========================================================================
   andershegner.dk – site.css
   Colours and fonts taken from the original Elementor kit
   ========================================================================== */

:root {
  --ah-navy:       #162D4B;  /* hero overlay, footer, guarantee boxes */
  --ah-navy-2:     #203859;  /* nav, buttons, post titles */
  --ah-logo-blue:  #164686;  /* "A" and "H" in the logo */
  --ah-grey-blue:  #8C9FAB;  /* badges, divider */
  --ah-sand:       #D3CECA;  /* hero body text */
  --ah-text:       #333333;
  --ah-muted:      #696969;
  --ah-light:      #F6F6F6;  /* light section background */
  --ah-light-2:    #E6E6E6;  /* match boxes */
  --ah-good:       #7FC453;
  --ah-bad:        #C45353;
  --ah-white:      #FFFFFF;

  --ah-font-head:  "Red Hat Display", sans-serif;
  --ah-font-body:  "Montserrat", sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--ah-font-body);
  font-size: 15px;
  color: var(--ah-text);
  background: var(--ah-white);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--ah-font-head); color: var(--ah-text); }
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
a  { color: var(--ah-navy-2); }

.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

@media (max-width: 1024px) { h1 { font-size: 38px; } h2 { font-size: 28px; } h3 { font-size: 22px; } }
@media (max-width: 767px)  { body { font-size: 14px; } h1 { font-size: 32px; } h2 { font-size: 26px; } }

/* ---------- Buttons ---------- */
.btn-ah {
  background: var(--ah-navy-2);
  color: var(--ah-white);
  border: 1px solid var(--ah-navy-2);
  border-radius: 10px;
  padding: .7rem 1.6rem;
  font-family: var(--ah-font-body);
  font-weight: 500;
  transition: transform .3s, background-color .3s;
}
.btn-ah:hover, .btn-ah:focus { background: var(--ah-navy); color: var(--ah-white); transform: scale(1.06); }
.btn-ah-outline { border-color: var(--ah-white); }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1030; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(22, 45, 75, .12); }   /* toggled by site.js */
.site-header .nav-link.active::after { opacity: 1; }                            /* current page, set by site.js */
.site-header .dropdown-item.active { background: var(--ah-light); color: var(--ah-navy); }
.site-header .navbar { padding: 14px 0; }
.site-logo {
  font-family: var(--ah-font-body);
  font-size: 28px;
  font-weight: 200;
  text-transform: uppercase;
  color: var(--ah-navy) !important;
  letter-spacing: 0;
}
.site-logo b { color: var(--ah-logo-blue); font-weight: 400; }   /* original: <b> inside a 200-weight heading = "bolder" = 400, not 700 */

.site-header .nav-link {
  font-family: var(--ah-font-head);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ah-navy-2);
  padding: 10px 0 !important;
  margin: 0 15px;
  position: relative;
}
.site-header .nav-link::after { /* underline pointer */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  background: var(--ah-navy-2);
  opacity: 0;
  transition: opacity .3s;
  border: 0;
  margin: 0;
  width: auto;
}
.site-header .nav-link:hover::after,
.site-header .nav-link:focus::after { opacity: 1; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--ah-navy-2); }
.site-header .nav-social .nav-link { font-size: 22px; margin-right: 0; transition: transform .3s; }
.site-header .nav-social .nav-link:hover { transform: scale(1.15); }
.site-header .nav-social .nav-link::after { display: none; }

.site-header .dropdown-menu {
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 3px rgba(0,0,0,.14);
  padding: 0;
  min-width: 260px;
}
.site-header .dropdown-item {
  font-family: var(--ah-font-body);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ah-navy-2);
  padding: 10px;
}
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--ah-light); color: var(--ah-navy); }

.navbar-toggler { border: 0; color: var(--ah-navy-2); font-size: 24px; }
.navbar-toggler:focus { box-shadow: none; }

@media (min-width: 992px) {
  /* open dropdowns on hover on desktop, like the original */
  .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .site-header .nav-link { margin: 0; }
  .site-header .dropdown-menu { box-shadow: none; padding-left: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: 75px 0; }
.section-light { background: var(--ah-light); }
.section-title {
  font-family: var(--ah-font-head);
  font-weight: 300;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-intro { max-width: 820px; margin: -1rem auto 2.5rem; text-align: center; }
@media (max-width: 1024px) { .section { padding: 50px 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ah-navy);
  opacity: .3;
}
.hero-inner { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero-text h1 {
  font-family: var(--ah-font-body);
  font-size: 36px;
  font-weight: 400;
  color: var(--ah-white);
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.hero-text p {
  font-size: 18px;
  color: var(--ah-sand);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
@media (max-width: 1024px) {
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 15px; }
}
@media (max-width: 767px) { .hero-text h1 { font-size: 28px; } }

/* ---------- Reusable contact form (contact-form.html) ---------- */
.ah-form-card {
  background: var(--ah-white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(22, 45, 75, .25);
}
.ah-form-title {
  font-family: var(--ah-font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--ah-navy);
  margin-bottom: .3rem;
}
.ah-form-lead { color: var(--ah-muted); margin-bottom: 1.1rem; }
.ah-form-card .form-control,
.report-form .form-control {
  border-radius: 6px;
  border-color: #cfd6dd;
  font-size: 15px;
  padding: .65rem .8rem;
}
.ah-form-card .form-control:focus,
.report-form .form-control:focus {
  border-color: var(--ah-grey-blue);
  box-shadow: 0 0 0 .2rem rgba(32, 56, 89, .15);
}
.ah-accept { font-size: 13px; margin: .25rem 0; }
.ah-accept .form-check-input:checked { background-color: var(--ah-navy-2); border-color: var(--ah-navy-2); }
.ah-accept a { text-decoration: underline; }
.ah-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ah-form-card .form-select {
  border-radius: 6px;
  border-color: #cfd6dd;
  font-size: 15px;
  padding: .65rem .8rem;
  color: var(--ah-muted);
}
.ah-form-card .form-select:focus { border-color: var(--ah-grey-blue); box-shadow: 0 0 0 .2rem rgba(32, 56, 89, .15); }
.ah-form-card .form-label { font-size: 13px; font-weight: 600; color: var(--ah-navy-2); margin-bottom: .2rem; }
.ah-form-card .form-error-msg { display: flex; gap: .6rem; align-items: flex-start; font-size: 14px; padding: .6rem .8rem; }
.ah-form-card .form-error-msg.d-none { display: none !important; }
.ah-form-card .submit-btn { min-height: 48px; }
.ah-form-card .submit-btn .btn-text i { margin-right: .5rem; }

/* site.js initializeContactForms(): success overlay covers the whole card */
.sk-form-card { position: relative; overflow: hidden; }
.sk-form-card .contact-success-wrapper {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;               /* site.js sets display:flex when shown */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background: var(--ah-white);
  border-radius: inherit;
}
.sk-form-card .contact-success-wrapper.d-none { display: none !important; }
.sk-form-card .contact-success-wrapper .success-icon { font-size: 56px; line-height: 1; color: var(--ah-good); }
.sk-form-card .contact-success-wrapper h3 { font-size: 22px; color: var(--ah-navy); }
.sk-form-card .contact-success-wrapper p { margin: 0; color: var(--ah-muted); }

/* When the form is dropped onto a dark / navy section */
.on-dark .ah-form-card { box-shadow: none; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 300px;
  padding: 20px;
  border-radius: 5px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  color: var(--ah-white);
  text-decoration: none;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ah-text);
  opacity: .67;
  transition: opacity .3s;
}
.service-card:hover::before { opacity: .5; }
.service-card > * { position: relative; }
.service-card h4 {
  font-family: var(--ah-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ah-white);
  margin: 40px 0 12px;
}
.service-card ul { padding-left: 1.1rem; margin: 0; }
.service-card li { margin-bottom: .35rem; }
.service-card:hover { color: var(--ah-white); }

/* ---------- Guarantees ---------- */
.guarantee-box {
  height: 100%;
  background: var(--ah-navy);
  color: var(--ah-white);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,.38);
  padding: 30px 20px;
  text-align: center;
}
.guarantee-box i { font-size: 48px; margin-bottom: 18px; }
.guarantee-box h3 {
  font-family: var(--ah-font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ah-white);
}
.guarantee-box p { margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { max-width: 860px; margin: 0 auto; padding: 0 60px 50px; text-align: center; }
.testimonial-text { font-size: 16px; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-footer { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-footer img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.testimonial-footer cite { font-style: normal; text-align: left; line-height: 1.3; }
.testimonial-footer .name { display: block; font-weight: 700; }
.testimonial-footer .title { display: block; font-size: 13px; }
.testimonials .carousel-control-prev,
.testimonials .carousel-control-next { width: 40px; color: var(--ah-muted); font-size: 20px; opacity: 1; }
.testimonials .carousel-control-prev:hover,
.testimonials .carousel-control-next:hover { color: var(--ah-navy-2); }
.testimonials .carousel-indicators { margin-bottom: 0; }
.testimonials .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: var(--ah-text);
}
@media (max-width: 575.98px) { .testimonials { padding: 0 30px 50px; } }

/* ---------- Match boxes ---------- */
.match-box { height: 100%; background: var(--ah-light-2); border-radius: 10px; padding: 24px; }
.match-box h4 { text-align: center; margin-bottom: 1rem; }
.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; gap: 10px; padding-bottom: 8px; }
.icon-list i { margin-top: 3px; }
.icon-list.good i { color: var(--ah-good); }
.icon-list.bad  i { color: var(--ah-bad); }

/* ---------- Article cards ---------- */
.post-card {
  position: relative;
  height: 100%;
  background: var(--ah-white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s;
}
.post-card:hover { box-shadow: 0 0 30px rgba(0,0,0,.15); }
.post-thumb { display: block; position: relative; padding-bottom: 66%; overflow: hidden; }
.post-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-thumb::after { /* hover gradient */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 75%);
  opacity: 0;
  transition: opacity .3s;
}
.post-card:hover .post-thumb::after { opacity: 1; }
.post-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--ah-grey-blue);
  color: var(--ah-white);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .35em 1.1em;
}
.post-body { padding: 30px 30px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 21px; margin-bottom: .8rem; }
.post-body h3 a { color: var(--ah-navy-2); text-decoration: none; }
.post-body p { font-size: 14px; line-height: 1.6; }
.post-body .read-more {
  margin-top: auto;
  color: var(--ah-navy-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ah-navy-2);
  opacity: .75;
}
.cta-section .container { position: relative; }
.cta-section .section-title { color: var(--ah-white); max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ah-navy); color: var(--ah-white); padding-top: 50px; }
.footer-name {
  font-family: var(--ah-font-head);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--ah-white);
  margin-bottom: 1.2rem;
}
.footer-contact, .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 2rem;
  font-family: var(--ah-font-head);
}
.footer-contact i { margin-right: .5rem; }
.site-footer a { color: var(--ah-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-divider {
  border: 0;
  border-top: 1.8px solid var(--ah-grey-blue);
  opacity: 1;
  margin: 1.5rem auto;
  max-width: 1140px;
}
.footer-bottom { padding: 10px 0; margin-top: 1.5rem; text-align: center; }
.footer-bottom p { margin: 0; font-size: 11px; }

/* ---------- "27 salgsfejl" floating tab + modal ---------- */
.report-tab {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1040;
  max-width: 346px;
  background: var(--ah-navy);
  color: var(--ah-white);
  border: 0;
  padding: 12px 18px;
  font-family: var(--ah-font-body);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.report-tab:hover { background: var(--ah-navy-2); }
.report-modal { padding: 30px; border-radius: 10px; }
.report-modal .btn-close { position: absolute; right: 16px; top: 16px; }
.report-modal h3 { font-size: 22px; color: var(--ah-navy); }
.report-image { max-width: 200px; border-radius: 6px; }
@media (max-width: 575.98px) {
  .report-tab { max-width: none; left: 0; text-align: center; font-size: 13px; }
  body { padding-bottom: 50px; }
}

/* ==========================================================================
   Sub pages (services, articles, archive, contact …)
   ========================================================================== */

/* ---------- Page banner ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 90px;
  background-size: cover;
  background-position: center;
  background-color: var(--ah-navy);
  color: var(--ah-white);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,45,75,.88) 0%, rgba(22,45,75,.62) 60%, rgba(22,45,75,.45) 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--ah-font-head);
  font-weight: 300;
  font-size: 46px;
  color: var(--ah-white);
  max-width: 900px;
  margin: 0;
}
.page-hero h1 .d-block { font-weight: 500; font-size: .7em; margin-top: .4rem; }
.page-hero-sub { font-size: 20px; color: var(--ah-sand); max-width: 760px; margin: 1rem 0 0; }
.page-hero-kicker { margin: 0 0 .6rem; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.page-hero-kicker a { color: var(--ah-sand); text-decoration: none; }
.page-hero-kicker a:hover { color: var(--ah-white); }
@media (max-width: 767px) {
  .page-hero { padding: 70px 0 55px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero-sub { font-size: 16px; }
}

.page-hero--article { padding: 120px 0 70px; }
.page-hero--article h1 { font-size: 40px; font-weight: 400; }
.post-badge--static { position: static; display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.post-badge--static:hover { color: var(--ah-white); background: var(--ah-navy-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 1.2rem 0 0; font-size: 14px; color: var(--ah-sand); }
.article-meta i { margin-right: .45rem; }
@media (max-width: 767px) { .page-hero--article { padding: 70px 0 45px; } .page-hero--article h1 { font-size: 28px; } }

/* reading progress bar (site.js initReadingProgress) */
.reading-progress { position: sticky; top: 0; z-index: 1029; height: 4px; background: transparent; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--ah-grey-blue); transition: width .1s linear; }

/* ---------- Prose (article / service text) ---------- */
.prose { font-size: 16px; line-height: 1.75; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--ah-font-head);
  font-size: 28px;
  font-weight: 500;
  color: var(--ah-navy);
  margin: 2.4rem 0 1rem;
  scroll-margin-top: 110px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; color: var(--ah-navy); margin: 1.8rem 0 .7rem; }
.prose p { margin-bottom: 1.1rem; }
.prose a { color: var(--ah-logo-blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ah-navy); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose figure.figure-img-wrap { margin: 1.6rem 0; text-align: center; }
.prose figure.figure-img-wrap img { box-shadow: 0 4px 18px rgba(22,45,75,.12); }
.prose figcaption { font-size: 13px; color: var(--ah-muted); margin-top: .5rem; }
.prose-narrow { max-width: 860px; margin: 0 auto; }
.prose-light, .prose-light h2, .prose-light h3 { color: var(--ah-white); }
.prose-light a { color: var(--ah-white); }

.num-list { list-style: none; counter-reset: num; padding-left: 0 !important; }
.num-list li { counter-increment: num; position: relative; padding-left: 2.6rem; margin-bottom: .7rem; }
.num-list li::before {
  content: counter(num);
  position: absolute; left: 0; top: .1rem;
  width: 1.8rem; height: 1.8rem; line-height: 1.8rem;
  border-radius: 50%;
  background: var(--ah-navy-2);
  color: var(--ah-white);
  font-size: 13px; font-weight: 700; text-align: center;
}

/* service pages: bullet lists as check lists */
.prose-service ul { list-style: none; padding-left: 0; }
.prose-service ul li { position: relative; padding-left: 1.9rem; }
.prose-service ul li::before {      /* green check circle, drawn with an inline SVG so it needs no icon font */
  content: "";
  position: absolute; left: 0; top: .32em;
  width: 1.15rem; height: 1.15rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%237FC453'/%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pull-quote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--ah-grey-blue);
  background: var(--ah-light);
  border-radius: 0 8px 8px 0;
  font-family: var(--ah-font-head);
  font-size: 20px;
  color: var(--ah-navy);
}
.pull-quote p { margin: 0; }

/* tables in articles */
.table-responsive { margin: 1.4rem 0 1.8rem; border-radius: 8px; box-shadow: 0 0 0 1px #e3e7ec; }
.ah-table { margin: 0; font-size: 14.5px; line-height: 1.55; }
.ah-table th, .ah-table td { padding: .7rem .9rem; vertical-align: top; border-color: #e3e7ec; }
.ah-table thead th { background: var(--ah-navy); color: var(--ah-white); font-family: var(--ah-font-head); font-weight: 500; border-color: var(--ah-navy); }
.ah-table tbody tr:nth-child(even) td { background: #f8f9fb; }
.ah-table td strong:only-child { color: var(--ah-navy); }

/* ---------- Article layout ---------- */
.article-section { padding-top: 55px; }
.article-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.article-toc { background: var(--ah-light); border-radius: 10px; padding: 22px 24px; }
.article-toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ah-muted); margin: 0 0 .8rem; }
.article-toc ol, .toc-mobile ol { list-style: none; padding: 0; margin: 0; }
.article-toc li, .toc-mobile li { margin: 0; }
.article-toc a, .toc-mobile a {
  display: block;
  padding: .35rem 0 .35rem .8rem;
  border-left: 2px solid transparent;
  color: var(--ah-navy-2);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.article-toc a:hover, .article-toc a.is-active { border-left-color: var(--ah-navy-2); color: var(--ah-navy); font-weight: 600; }
.toc-mobile { background: var(--ah-light); border-radius: 10px; padding: 14px 18px; margin-bottom: 1.8rem; }
.toc-mobile summary { font-weight: 600; color: var(--ah-navy); cursor: pointer; }
.toc-mobile ol { margin-top: .6rem; }
@media (max-width: 991.98px) { .article-aside { position: static; } }

/* ---------- CTA card (aside) ---------- */
.cta-card {
  background: var(--ah-navy);
  color: var(--ah-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22,45,75,.18);
}
.cta-card img { width: 100%; height: 240px; object-fit: cover; object-position: center 20%; display: block; }
.cta-card-body { padding: 24px; }
.cta-card h3 { color: var(--ah-white); font-size: 21px; font-weight: 700; }
.cta-card p { color: var(--ah-sand); font-size: 14.5px; }
.cta-card .btn-ah { border-color: var(--ah-white); background: var(--ah-white); color: var(--ah-navy); }
.cta-card .btn-ah:hover { background: var(--ah-sand); color: var(--ah-navy); }
.cta-card-contact { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 14px; }
.cta-card-contact li { margin-top: .35rem; }
.cta-card-contact i { width: 1.4rem; color: var(--ah-grey-blue); }
.cta-card-contact a { color: var(--ah-white); text-decoration: none; }
.cta-card-contact a:hover { text-decoration: underline; }

/* ---------- Formål / Potentiale / Metode / Resultat cards ---------- */
.pmr-card {
  height: 100%;
  background: var(--ah-white);
  border-radius: 10px;
  padding: 28px 28px 24px;
  box-shadow: 0 4px 22px rgba(22,45,75,.09);
  border-top: 4px solid var(--ah-navy-2);
}
.pmr-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ah-navy);
  color: var(--ah-white);
  font-size: 22px;
  margin-bottom: 14px;
}
.pmr-card h3 { font-family: var(--ah-font-head); font-size: 22px; font-weight: 700; color: var(--ah-navy); margin-bottom: .7rem; }
.pmr-card .prose { font-size: 15px; }

/* ---------- Tool cards (Drift & økonomi A–H) ---------- */
.tool-card {
  position: relative;
  height: 100%;
  background: var(--ah-white);
  border-radius: 10px;
  padding: 30px 26px 24px;
  box-shadow: 0 4px 22px rgba(22,45,75,.09);
}
.tool-letter {
  position: absolute; top: -16px; left: 24px;
  width: 38px; height: 38px; line-height: 38px;
  text-align: center;
  border-radius: 8px;
  background: var(--ah-navy-2);
  color: var(--ah-white);
  font-family: var(--ah-font-head);
  font-weight: 700;
}
.tool-card h3 { font-family: var(--ah-font-head); font-size: 20px; font-weight: 700; color: var(--ah-navy); margin: 6px 0 .8rem; }
.tool-card .prose { font-size: 15px; }
.tool-card .prose img { display: block; margin: 1rem auto 0; }
.section-light .tool-card { box-shadow: 0 4px 22px rgba(22,45,75,.07); }
.section .row:has(> div > .tool-card) { row-gap: 2.6rem !important; }

/* ---------- Navy contact section on service pages ---------- */
.section-navy { background: linear-gradient(135deg, var(--ah-navy-2) 0%, #2a4a74 100%); color: var(--ah-white); }
.section-navy + .site-footer, main:has(> .section-navy:last-child) + .site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.form-after-note { font-size: 13px; color: var(--ah-sand); margin-top: 14px; }
.ah-form-note { font-size: 12.5px; color: var(--ah-muted); margin: .8rem 0 0; }
.ah-form-note a { color: inherit; text-decoration: underline; }

/* ---------- Newsletter section + form ---------- */
.newsletter-section { background: linear-gradient(135deg, var(--ah-navy) 0%, var(--ah-navy-2) 100%); color: var(--ah-white); }
.newsletter-title { font-family: var(--ah-font-head); font-weight: 300; color: var(--ah-white); font-size: 30px; }
.newsletter-section .col-lg-6:first-child p { color: var(--ah-sand); font-size: 17px; }
.newsletter-section .ah-form-card { box-shadow: none; }
.ah-form-card--newsletter label.form-label { display: block; width: 100%; }
.ah-form-card--newsletter label.form-label .form-control { margin-top: .2rem; font-weight: 400; }
.report-modal .ah-form-card { box-shadow: none; padding: 0; }

/* ---------- Article archive (site.js initKnowledgeCenter) ---------- */
.vc-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-chip {
  border: 1px solid #cfd6dd;
  background: var(--ah-white);
  color: var(--ah-navy-2);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.vc-chip .count { color: var(--ah-muted); font-weight: 400; }
.vc-chip:hover { border-color: var(--ah-navy-2); }
.vc-chip.is-active { background: var(--ah-navy-2); border-color: var(--ah-navy-2); color: var(--ah-white); }
.vc-chip.is-active .count { color: var(--ah-sand); }
.vc-tools { display: flex; gap: 8px; }
.vc-search { position: relative; margin: 0; }
.vc-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ah-muted); font-size: 14px; }
.vc-search .form-control { padding-left: 34px; min-width: 220px; border-radius: 999px; }
.vc-sort { border-radius: 999px; width: auto; }
.vc-status { font-size: 13px; color: var(--ah-muted); margin-bottom: 22px; }
.vc-item.is-hidden { display: none; }
.vc-empty { text-align: center; color: var(--ah-muted); padding: 40px 0; }
a.post-badge { text-decoration: none; z-index: 2; }
a.post-badge:hover { background: var(--ah-navy-2); color: var(--ah-white); }
.post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .6rem; font-size: 12px; color: var(--ah-muted); }
.post-foot i { margin-right: .35rem; }
.post-foot .read-more { margin-top: 0; }
@media (max-width: 767px) {
  .vc-tools { width: 100%; }
  .vc-search { flex: 1; }
  .vc-search .form-control { min-width: 0; width: 100%; }
}
.latest-3 .row > div:nth-child(n+4) { display: none; }

/* ---------- Om / Kontakt / Tak / Rapporter ---------- */
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; max-width: 420px; height: auto; border-radius: 10px; box-shadow: 0 14px 40px rgba(22,45,75,.22); display: block; margin: 0 auto; }
.credential-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.credential-list li { background: var(--ah-light); border-radius: 8px; padding: .6rem .9rem; font-size: 14.5px; font-weight: 500; color: var(--ah-navy); }
.credential-list i { color: var(--ah-grey-blue); margin-right: .6rem; }

.contact-card { display: flex; gap: 18px; align-items: center; margin-top: 28px; padding: 20px; border-radius: 10px; background: var(--ah-light); }
.contact-card img { width: 96px; height: 96px; object-fit: cover; object-position: center 20%; border-radius: 50%; flex-shrink: 0; }
.contact-card h3 { font-size: 20px; color: var(--ah-navy); margin-bottom: .4rem; }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.contact-list li { margin-bottom: .25rem; }
.contact-list i { width: 1.5rem; color: var(--ah-navy-2); }
.contact-list a { color: var(--ah-navy-2); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.thanks-card { max-width: 720px; margin: 0 auto; text-align: center; background: var(--ah-white); border-radius: 12px; padding: 44px 34px; box-shadow: 0 8px 32px rgba(22,45,75,.12); }
.thanks-card .success-icon { font-size: 56px; color: var(--ah-good); margin-bottom: 18px; }
.thanks-card .signature { font-family: var(--ah-font-head); font-size: 22px; font-style: italic; color: var(--ah-navy); }
.thanks-card .btn { margin-top: 1.4rem; }
.lead-sub { font-family: var(--ah-font-head); font-size: 19px; color: var(--ah-navy-2); }

.report-card {
  display: flex; flex-direction: column;
  height: 100%;
  padding: 26px;
  border-radius: 10px;
  background: var(--ah-navy);
  color: var(--ah-white);
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(22,45,75,.18);
  transition: transform .3s, box-shadow .3s;
}
.report-card:hover { color: var(--ah-white); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(22,45,75,.28); }
.report-card-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ah-grey-blue); margin-bottom: .6rem; }
.report-card h3 { color: var(--ah-white); font-size: 20px; flex: 1; }
.report-card .read-more { color: var(--ah-sand); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.report-cover { max-width: 520px; width: 100%; }
.report-note { font-size: 14px; color: var(--ah-muted); margin-top: 1rem; }

/* legal pages */
.legal h2 { font-size: 21px; margin-top: 2rem; }

/* ---------- Reveal on scroll (site.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* g-5 rows overflow the 12px container padding on phones – use a normal gutter there */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }