/**
 * UK-Visum.dk homepage — layout aligned with legacy WordPress theme
 * Assets: assets/img/cavisum/
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body.ukv-home {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  color: #2b325e;
  background: #f4f5f7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.ukv-home h1,
.ukv-home h2,
.ukv-home h3,
.ukv-home h4,
.ukv-home h5,
.ukv-home h6 {
  margin: 0;
  padding: 0;
  clear: both;
}

.ukv-home p {
  margin: 0;
}

.ukv-home ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ukv-home a {
  color: #2b325e;
  text-decoration: none;
}

.ukv-home a:hover,
.ukv-home a:focus {
  color: rgba(43, 50, 94, 1);
  text-decoration: none;
}

.ukv-home a:focus {
  outline: 0;
}

.ukv-home .container {
  max-width: 1135px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 960px) {
  .ukv-home .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Skip link */
.ukv-home .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.ukv-home .screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #2b325e;
  display: block;
  font-size: 14px;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 24px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ——— Header ———
   Sticky for inner pages, apply flow, and forside (same chrome as apply when body has .ukv-apply-page). */
.ukv-home.ukv-inner-page .site-header,
.ukv-home.ukv-apply-page .site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #2b325e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.ukv-home #ukv-top-header {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background: #2b325e;
  width: 100%;
  min-height: 80px;
  display: block;
}

.ukv-home #ukv-top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.ukv-home #ukv-top-header .logo {
  max-width: 293px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  display: block;
}

.ukv-home .header-contact {
  font-size: 12px;
  font-weight: 600;
  position: relative;
  top: -13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 4px;
  color: #fff;
}

.ukv-home .header-contact a {
  color: #1da1f2;
  font-weight: normal;
  margin: 0 8px;
}

.ukv-home .header-contact a:hover {
  color: #fff;
}

.ukv-home .facebook img {
  width: 24px !important;
  height: auto;
  display: block;
}

/* Navigation */
.ukv-home .main-navigation {
  display: block;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background: #fff;
  padding-left: 0;
  transition: padding 0.3s ease;
}

@media (min-width: 1400px) {
  .ukv-home .main-navigation {
    padding-left: 217px;
  }
}

.ukv-home .main-navigation ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.ukv-home .main-navigation li {
  float: left;
  position: relative;
  margin-right: 24px;
}

.ukv-home .main-navigation li:last-child {
  margin-right: 0;
}

.ukv-home .main-navigation a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.ukv-home .main-navigation .current-menu-item a {
  color: rgba(43, 50, 94, 1);
  font-weight: 700;
}

.ukv-home .menu-toggle {
  display: none;
  background: none;
  border: 1px solid #fff;
  border-radius: 2px;
  padding: 6px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.ukv-home .burger-icon {
  width: 24px;
  height: auto;
  display: block;
}

.ukv-home .mobile-navigation {
  display: none;
}

.ukv-home .desktop-navigation .container::after,
.ukv-home .main-navigation ul::after {
  content: '';
  display: table;
  clear: both;
}

@media screen and (min-width: 37.5em) {
  .ukv-home .menu-toggle {
    display: none;
  }
  .ukv-home .desktop-navigation .main-navigation ul,
  .ukv-home .desktop-navigation ul {
    display: block;
  }
}

@media (max-width: 599px) {
  /* Forside only: fixed header (sticky can fail with flex/page chrome on mobile WebKit) */
  body.ukv-forside.ukv-home #masthead.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  body.ukv-forside.ukv-home #content.site-content {
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
  }

  .ukv-home #ukv-top-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 10px 16px;
    min-height: 0;
  }

  .ukv-home #ukv-top-header .container {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    min-height: 0;
    display: flex;
    align-items: center;
  }

  .ukv-home #ukv-top-header .container > a {
    display: flex;
    align-items: center;
    line-height: 0;
  }

  .ukv-home #ukv-top-header .mobile-navigation {
    flex: 0 0 auto;
    padding: 0;
    margin-right: 0;
    align-self: center;
    position: relative;
  }

  .ukv-home .header-contact {
    display: none;
  }

  .ukv-home .mobile-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: none;
    padding: 0;
  }

  .ukv-home .mobile-navigation .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin-right: 12px;
  }

  .ukv-home .mobile-navigation .menu-main-menu-container {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: min(100vw - 32px, 320px);
    background: #fff;
    height: auto;
    z-index: 1000001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
  }

  .ukv-home .mobile-navigation.toggled .menu-main-menu-container {
    display: block;
  }

  .ukv-home .mobile-navigation ul {
    display: block !important;
    float: none;
  }

  .ukv-home .mobile-navigation li {
    float: none;
    display: block;
    padding: 16px 18px;
    margin-right: 0;
    line-height: 1.35;
    border-bottom: 1px solid #eee;
  }

  .ukv-home .mobile-navigation li:last-child {
    border-bottom: none;
  }

  .ukv-home .desktop-navigation {
    display: none;
  }

  .ukv-home #ukv-top-header .logo {
    max-width: 148px;
    width: auto;
    height: auto;
    max-height: 44px;
    object-fit: contain;
  }

  .ukv-home #ukv-top-header .container {
    min-height: 52px;
  }

  /* Hero typography/spacing (padding + background-position overridden after base .hero rule) */
  .ukv-home .hero .container {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .ukv-home .hero .main-title {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 26px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .ukv-home .hero .separator {
    margin-bottom: 18px;
  }

  .ukv-home .hero .sub-title {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 22px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .ukv-home .hero-extra-desc {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .ukv-home .hero-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .ukv-home .hero .btn {
    font-size: 17px !important;
  }
}

@media (min-width: 600px) {
  .ukv-home .mobile-navigation {
    display: none;
  }

  .ukv-home .desktop-navigation {
    display: block;
  }

  .ukv-home .desktop-navigation .main-navigation ul {
    display: block;
  }
}

/* ——— Hero ——— */
.ukv-home .hero {
  background: url('../img/cavisum/canada-hero.webp') center center / cover no-repeat;
  width: 100%;
  padding-top: 70px;
  padding-bottom: 80px;
  position: relative;
}

/* Phone: tighter padding, shift focal point so the main subject stays in frame on narrow crops */
@media (max-width: 599px) {
  .ukv-home .hero {
    background-position: 62% center;
    padding-top: 36px;
    padding-bottom: 64px;
  }
}

.ukv-home .hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ukv-home .hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(220deg, rgba(86, 97, 151, 0.3) 0%, #2b325e 100%);
  z-index: 0;
}

.ukv-home .hero .main-title {
  max-width: 523px;
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.ukv-home .hero .separator {
  height: 4px;
  max-width: 523px;
  background: #fff;
  margin-bottom: 26px;
}

.ukv-home .hero .sub-title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  max-width: 523px;
  color: #fff;
  margin-bottom: 32px;
}

.ukv-home .hero-extra-desc {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  max-width: 523px;
}

.ukv-home .hero-btn {
  max-width: 523px;
}

.ukv-home .hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 523px;
  width: 100%;
}

.ukv-home .hero-cta-row .hero-btn {
  margin: 0;
}

/* Buttons — marketing CTAs (green/blue). Exclude Bootstrap utility variants so apply/success/cancel keep normal contrast. */
.ukv-home .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-outline-info):not(.btn-outline-light):not(.btn-outline-dark):not(.btn-link):not(.ukv-applicant-edit):not(.ukv-applicant-delete):not(.ukv-step2-footer-btn):not(.ukv-gate-footer-btn):not(.ukv-btn-pay-checkout) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  border-radius: 4px !important;
  transition: all 0.5s ease !important;
  width: 100% !important;
  max-width: 523px;
  height: 48px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: none;
  box-sizing: border-box;
}

.ukv-home a.green-btn:visited,
.ukv-home a.blue-btn:visited {
  color: #fff;
}

.ukv-home .green-btn {
  color: #fff !important;
  background: #41c156 !important;
}

.ukv-home .green-btn:hover {
  color: #fff !important;
  background: #4ce065 !important;
}

.ukv-home .blue-btn {
  background: #2b325e !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.ukv-home .blue-btn:hover {
  color: #fff !important;
}

.ukv-home .form-cta-btn {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.ukv-home .home-text-inner .green-btn.form-cta-btn {
  display: flex !important;
  width: 100% !important;
  max-width: 280px;
}

/* ——— Benefits (4 white boxes) ——— */
.ukv-home .benefits-band {
  background: #f4f5f7;
  padding: 32px 0 48px;
}

.ukv-home .benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #f4f5f7;
}

.ukv-home .benefits .wp-block-column {
  background: #fff;
  border-radius: 4px;
  padding: 25px 20px 35px;
  text-align: center;
}

.ukv-home .benefit-img {
  text-align: center;
  background: rgba(43, 50, 94, 0.03);
  border-radius: 100%;
  width: 128px;
  height: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
}

.ukv-home .benefits img {
  height: 64px;
  width: auto;
}

.ukv-home .benefits h4 {
  font-size: 18px;
  line-height: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #2b325e;
}

.ukv-home .benefits p {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  margin: 0;
  color: #2b325e;
}

@media (max-width: 991px) {
  .ukv-home .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .ukv-home .benefit-img {
    width: 96px;
    height: 96px;
  }

  .ukv-home .benefits img {
    height: 48px;
    width: 48px;
  }
}

@media (max-width: 599px) {
  .ukv-home .benefits {
    grid-template-columns: 1fr;
  }
}

/* ——— Image separator ——— */
.ukv-home .image-separator {
  background: url('../img/cavisum/separator-bg.jpg') bottom center / cover no-repeat;
  width: 100%;
  height: 315px;
  position: relative;
}

.ukv-home .image-separator .separator-overlay {
  background: rgba(43, 50, 94, 0.2);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* ——— Main text block ——— */
.ukv-home .home-text-block {
  margin: -260px auto 0;
  position: relative;
  z-index: 2;
}

.ukv-home .home-text-block .home-text-inner {
  background: #fff;
  border-radius: 4px;
  padding: 64px 32px;
  box-shadow: 0 4px 24px rgba(43, 50, 94, 0.08);
}

.ukv-home .home-text-block h1.wp-block-heading {
  font-size: 32px;
  line-height: 44px;
  margin-bottom: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #222;
}

.ukv-home .home-text-block h2.sub-title {
  font-size: 24px;
  line-height: 44px;
  letter-spacing: -0.8px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 24px;
  color: #222;
}

.ukv-home .home-text-block p {
  font-size: 16px;
  line-height: 32px;
  letter-spacing: -0.33px;
  color: #222;
  margin-bottom: 1em;
}

.ukv-home .home-text-block p:last-child {
  margin-bottom: 0;
}

.ukv-home .home-block-list {
  display: flex;
  margin-top: 40px;
  gap: 0 100px;
}

.ukv-home .home-block-list ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ukv-home .home-block-list ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
  color: #222;
}

.ukv-home .home-block-list ul li img {
  margin-right: 10px;
  flex-shrink: 0;
  width: 22px;
  height: auto;
}

@media (max-width: 991px) {
  .ukv-home .home-block-list {
    flex-direction: column;
    gap: 0;
  }

  .ukv-home .home-block-list ul:last-child {
    margin-top: 8px;
  }
}

@media (max-width: 599px) {
  .ukv-home .home-text-block {
    margin-top: -120px;
  }

  .ukv-home .home-text-block .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ukv-home .home-text-block .home-text-inner {
    padding: 40px 24px;
  }

  .ukv-home .home-text-block h1.wp-block-heading {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 16px;
  }

  .ukv-home .home-text-block h2.sub-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .ukv-home .home-text-block p {
    font-size: 14px;
    line-height: 28px;
  }

  .ukv-home .home-block-list ul li {
    font-size: 14px;
  }

  .ukv-home .home-block-list ul li img {
    width: 18px;
  }
}

/* ——— Bottom CTA strip ——— */
.ukv-home .form-cta {
  background: rgba(43, 50, 94, 0.2);
  width: 100%;
  padding: 64px 20px;
  margin-top: 40px;
}

.ukv-home .form-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ukv-home .form-cta .description {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.5px;
  font-weight: 700;
  max-width: 770px;
  margin-bottom: 40px;
  color: #2b325e;
}

@media (max-width: 768px) {
  .ukv-home .form-cta .description {
    font-size: 20px;
    line-height: 28px;
  }

  .ukv-home .form-cta {
    padding: 48px 20px;
  }
}

@media (max-width: 599px) {
  .ukv-home .form-cta .description {
    font-size: 18px;
    line-height: 28px;
  }
}

/* ——— Footer ——— */
.ukv-home .site-footer {
  background: #fff;
  width: 100%;
  padding: 48px 0 32px;
}

.ukv-home .footer-top {
  display: flex;
  margin-bottom: 48px;
  align-items: flex-start;
}

.ukv-home .footer-top > a img {
  opacity: 0.4;
  min-width: 80px;
  max-width: 120px;
  height: auto;
}

.ukv-home .footer-bottom ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 80px;
  padding-left: 120px;
  list-style: none;
  margin: 0;
}

.ukv-home .footer-bottom ul li {
  display: block;
  margin-bottom: 24px;
}

.ukv-home .footer-bottom ul li a {
  font-weight: 500;
  color: #2b325e;
}

.ukv-home .footer-payments-container {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.ukv-home .footer-payments {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.ukv-home .facebook-footer {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.ukv-home .facebook-footer img {
  max-width: 24px;
  height: auto;
}

.ukv-home .copyright {
  text-align: center;
  color: rgba(43, 50, 94, 0.64);
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 0 20px;
}

@media (max-width: 960px) {
  .ukv-home .footer-bottom ul {
    grid-column-gap: 32px;
    padding-left: 40px;
  }
}

@media (max-width: 599px) {
  .ukv-home .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .ukv-home .footer-top > a {
    margin-bottom: 24px;
  }

  .ukv-home .footer-bottom ul {
    grid-template-columns: 1fr;
    text-align: center;
    padding-left: 0;
  }

  .ukv-home .footer-bottom ul li {
    margin-bottom: 16px;
  }
}

@media (min-width: 1400px) {
  .ukv-home #ukv-top-header {
    display: block;
  }
}
