/* ==========================================================================
   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: 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; }
}
