/*
Theme Name:   Voxel (child theme)
Theme URI:    https://getvoxel.io/
Author:       27collective
Author URI:   https://27collective.net/
Template:     voxel
Version:      1.0
Text Domain:  voxel-child
*/

/* Base */
body {
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-font-smoothing: antialiased !important;
}

span a, p a { text-decoration: underline; }
.small span, .small p { font-size: 0.8rem; }

/* Headings */
h1 {
  font-size: 2.7em;
  line-height: 1.2em;
  margin-bottom: 32px;
  word-break: break-word;
}
h2 {
  font-size: 2em;
  line-height: 1.2em;
  margin-bottom: 32px;
  word-break: break-word;
}
h3 {
  font-size: 1.25rem;
  line-height: 2.2rem;
  margin-bottom: 32px;
  word-break: break-word;
}

/* Hide forced line breaks on small screens */
h1 br, h2 br, h3 br, h4 br, h5 br { display: none; }

/* Typo helpers */
.preheader span {
  color: var(--e-global-color-7022e0b) !important;
  font-size: .94rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .085em;
}
.intro {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6em;
}
.simpel-hero-title h1 {
  font-size: 3rem;
  line-height: 120%;
  letter-spacing: -.03em;
  color: #fff;
}
.simpel-hero-page-title h1 {
  font-size: 2.75rem;
  line-height: 120%;
  letter-spacing: -.015em;
  color: #fff;
}

/* Spacing utils */
.lr { padding-left: 1.25rem!important; padding-right: 1.25rem!important; }
.tb { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.tb-s { padding-top: 1rem; padding-bottom: 1rem; }
.tb-xs { padding-top: .5rem; padding-bottom: .5rem; }
.hero { padding: 4rem 1.25rem!important; }
.hero-compact { padding: 3rem 1.25rem 2rem!important; }
.hero-top { padding-top: 6rem; padding-bottom: 2rem!important; }

/* Legal */
.legal { z-index: 1; }
.legal h2 { font-size: 1.5rem; font-weight: 400; }
.legal h1 { font-size: 2.75rem; font-weight: 400 !important; }
.legal span.note { display: inline-flex; min-width: 40px; }

/* 768+ */
@media screen and (min-width: 768px) {
  .simpel-hero-title h1 { font-size: 3rem; }
  .simpel-hero-page-title h1 { font-size: 3.5rem; }
  h1 { font-size: 3rem; }
  h2 { font-size: 38px; }

  /* Restore line breaks on larger screens */
  h1 br, h2 br, h3 br, h4 br, h5 br { display: inline; }

  .lr { padding-left: 2.25rem!important; padding-right: 2.25rem!important; }
  .tb { padding-top: 2.6875rem; padding-bottom: 2.6875rem!important; }
  .tb-s { padding-top: 2rem; padding-bottom: 2rem!important; }
  .tb-xs { padding-top: .75rem; padding-bottom: .75rem!important; }
  .hero { padding: 3rem 2.25rem!important; }
  .hero-compact { padding: 4.5rem 2.25rem 3rem!important; }
}

/* 992+ */
@media screen and (min-width: 992px) {
  body { font-size: 1rem; } /* tidigare .95rem */
  h1 { font-size: 3rem; }
  h2 { font-size: 40px; }
  .simpel-hero-title h1 { font-size: 3.4rem; }
  .simpel-hero-page-title h1 { font-size: 5.625rem; }
  .intro { font-size: 1.2rem; }
  .hero-top { padding-top: 11rem; padding-bottom: 2rem!important; }
}

/* 1280+ */
@media screen and (min-width: 1280px) {
  h1 { font-size: 3.15rem; }
  h2 { font-size: 44px; }
  .simpel-hero-title h1 { font-size: 3.8rem; }
  .lr { padding-left: 3.75rem!important; padding-right: 3.75rem!important; }
  .tb { padding-top: 5rem; padding-bottom: 5rem; }
  .tb-s { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .tb-xs { padding-top: 1rem; padding-bottom: 1rem; }
  .hero { padding: 6rem 3.75rem!important; }
  .hero-compact { padding: 6rem 3.75rem 4rem!important; }
  .hero-top { padding-left: 3.75rem; padding-right: 3.75rem!important; }
}

/* 1440+ */
@media screen and (min-width: 1440px) {
  .simpel-hero-page-title h1 { font-size: 5.5rem; }
  h2 { font-size: 46px; }
}

/* Header state */
.change-bg-color {
  background-color: #fff !important;
  box-shadow: rgba(0, 0, 0, 0.05) 0 2px 7px;
  min-height: 80px !important;
  transition: .3s ease;
}
.change-bg-color svg { fill: var(--e-global-color-accent) !important; }
.change-bg-color .ts-user-area > ul > li > a { background-color: var(--e-global-color-primary) !important; }
.change-bg-color a.ts-item-link span { color: var(--e-global-color-primary) !important; }
.change-bg-color .ts-user-area .ts_comp_label { color: var(--e-global-color-79df52d) !important; }

.logo .elementor-icon i,
.logo .elementor-icon svg { height: auto !important; } /* tidigare unset */

/* Slider */
.slider .swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
}
.slider img.swiper-slide-image {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 25px;
  background: #fff;
  border-radius: 16px;
}
.slider-container { position: relative; }
.slider-container::before {
  content: "heg";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--e-global-color-050d6f1) 0, transparent 35%);
  z-index: 9999;            /* tidigare 999 */
  pointer-events: none;
  user-select: none;
}
.slider-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to left, var(--e-global-color-050d6f1) 0, transparent 30%);
  z-index: 5;            /* tidigare 999 */
  pointer-events: none;
  user-select: none;
}

/* News card */
.newsbox {
  border-radius: 1rem !important;
  overflow: hidden;
  transition: opacity .2s ease-out;
  position: relative;
  aspect-ratio: 440/540;
}
.newsbox p {
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .875rem !important;
}
.newsbox span {
  font-size: 1.5rem;
  transition: opacity .4s .2s cubic-bezier(.22,1,.36,1), transform .4s .2s cubic-bezier(.22,1,.36,1);
}
.newsbox .e-con-inner {
  padding: 2.5rem !important;
  width: 27.5rem;
  aspect-ratio: 440/540;
}
.newsbox img {
  aspect-ratio: 440/540;
  height: 100% !important;
  object-fit: cover;
}
@media (max-width: 720px){
  .newsbox .e-con-inner { padding: 1.5rem 1.25rem !important; width: 19.6875rem; }
  .newsbox p { font-size: .75rem; }
  .newsbox span { font-size: 1.25rem; }
}

/* Hero booking */
.booking { display: flex; flex-wrap: wrap; }
.booking input:focus { outline: none; }
input#url { display: none; }

.booking input#from,
.booking input#to {
  border: 1px solid #e0e3eb;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  padding-left: 15px;
  height: 48px;
  width: 100%;
}
.booking input:not([type="submit"]):focus {
  background: #fff;
  border-color: #555a58 !important;
}

.booking .field-group-from,
.booking .field-group-to {
  position: relative;
  min-height: 1px;
  display: flex;
  width: 100%;
}
.field-group-from:after,
.field-group-to:after {
  content: '';
  position: absolute;
  z-index: 10;
  top: 2px;
  right: 2px;
  width: 50px;
  height: 42px;
  border-radius: 4px;
  background-image: linear-gradient(to left, #fff 10%, transparent 100%);
}
.field-group-from img,
.field-group-to img {
  position: absolute;
  left: 10px;
  top: 14px;
  pointer-events: none;
}

.booking #change {
  background: #ffffff;
  border: 1px solid var(--e-global-color-fc2297d);
  font-size: 18px;
  padding: 7px;
  position: absolute;
  width: 34px;
  right: 13px;
  top: 29px;
  height: 34px;
  z-index: 20;
  text-align: center;
}

.booking .field-group-from label,
.booking .field-group-to label {
  font-size: 14px;
  font-weight: 500 !important;
  position: absolute;
  left: 10px;
  color: #1a1a1a;
  z-index: 10;
}
.booking .field-group-from label { bottom: 11px; }
.booking .field-group-to label { bottom: 19px; }

.booking input[type="submit"] {
  --mouse-x: 50;
  --mouse-y: 50;
  background-size: 200% 200%;
  background-position: calc((100 - var(--mouse-x, 0)) * 1%) calc((100 - var(--mouse-y, 0)) * 1%);
  background-image: radial-gradient(circle, rgba(0,168,143,1) 0%, rgb(0 142 150) 100%);
  border-radius: 8px;
  cursor: pointer;
  border: none;
  height: 48px;
  font-weight: 600;
  width: 100%;
}
.booking input[type="submit"]:hover {
  background-image: none; /* tidigare bara background-color */
  background-color: var(--e-global-color-secondary);
}

.booking svg {
    color: var(--e-global-color-accent);
}

/* About section */
.aboutnumber { margin-bottom: 24px !important; }
.aboutnumber .elementor-counter-number-wrapper { text-align: left !important; }
.aboutnumber .elementor-counter-title {
  font-size: 12px !important;
  line-height: 1.3em !important;
  font-weight: 400 !important;
  text-align: left !important;
}
.aboutnumber .elementor-counter .elementor-counter-number-wrapper {
  display: table;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3em !important;
}

/* Timeline dot/line */
.dot1 {
  background: #fff;
  border: 1px solid var(--e-global-color-fc2297d);
  width: 14px;
  height: 14px;
  border-radius: 50px;
  z-index: 5;
}
.line {
  height: 1px;
  width: 100%;
  border: 0;
  background: var(--e-global-color-fc2297d);
  z-index: 1;
}
@media screen and (max-width: 1024px) {
  .line { width: 1px; height: 100%; }
  .line-div { height: 100%; } /* tidigare -webkit-fill-available */
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  font-size: .875rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
@media screen and (min-width: 768px) {
  footer { padding-top: 2.25rem; }
}
@media screen and (min-width: 1280px) {
  footer { padding-top: 3.75rem; padding-bottom: 3.75rem; }
}
footer h6 {
  margin-block-start: 0;
  margin-block-end: 24px;
  font-size: 20px;
  font-weight: 500;
}
footer p a {
  color: var(--e-global-color-07b1ce3);
  text-decoration: none !important; /* tidigare unset */
}
footer p { font-size: 16px; margin-bottom: 12px; }
