:root {
--blue-dark: rgb(10, 52, 81);      
--blue: rgb(11, 90, 150);          
--blue-light: #1a659e;           
--sand: #efefd0;           
--darkest-blue:#001729;
--ljusare-orange: rgb(247,197,159);
--ljus-orange: rgb(238,175,127);
  --radius-md: 16px;
--lightest-grey: #f7f9f8;
}
@font-face {
    font-family: 'Work Sans';
    src: url('/Work_Sans/WorkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.6rem;
    margin: 0;
}
h1, h2, h3, h4 {
font-weight: 400;
    line-height: initial;
}
a {
  color: inherit;
  text-decoration: none;
}
.center {
    text-align: center;
    align-items: center;
}

section {
    padding: 6rem 12%;
    box-sizing: border-box;
  /* padding: 6rem clamp(1.5rem, 8vw, 20%);
  box-sizing: border-box; */

  position: relative;
  /* z-index: 1; */
}


.section--light {
  background: linear-gradient(170deg, var(--blue-dark), var(--blue));
  color: white;
}

.section--primary {
  background-color: var(--sand);
}

.section--dark {
  background-color: var(--blue);
  color: white;
}
.section--orange {
  background-color: var(--ljusare-orange);
}
.section--sand {
  background-color: var(--sand);
}
.section--lightest-grey{
background-color: var(--lightest-grey);
}

.section__content {
    text-align: center;
}
.margin-top {
margin-top: 100px;
}
a:hover {
  color: var(--sand);
}

.section--radius-md {
    border-radius: var(--radius-md);
}
.rot-box-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.box-rot {
    background-color: rgba(255, 255, 255, 0.41);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: black;
    flex: 1;
    text-align: center;
    padding: 30px;
    max-width: 400px;
}
.box-rot img {
    width: 150px;
    height: auto;
}
/* =====================================
 HEADER
===================================== */

.header {
    background-color: var(--darkest-blue);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  width: 100%;
    padding: 0 10%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-header {
  height: 120px;
  display: flex;
align-items: center;  /* CENTRERAR loggan vertikalt */
    overflow: hidden;
}
.logo-header img{
    max-height: 50px;     /* fyller containerns höjd */
    width: auto;
    object-fit: contain;
    display: block;
}

.menu li{
    display: inline;
}
.menu li a{
    text-decoration: none;
    color: white;
    padding: 10px;
    font-size: 20px;
}
.menu li a:hover{
    color: var(--blue-light);
}
#offert-button a{
    background-color: var(--ljus-orange);
    border-radius: 50px;
    padding: 6px 30px;
    text-decoration: none;
    color: black;
    border: 1px solid var(--blue);
}
#offert-button a:hover {
  background-color: var(--blue);
}


  /*Hamburgermeny*/

.hamburger-menu {
    display: none;
    /* position: relative;
    z-index: 1000; */
}
 .menu-toggle {
    display: none;
} 

 .hamburger-icon {
    font-size: 40px;
    cursor: pointer;
    padding: 10px 0;
    color: rgb(255, 255, 255);
    border: none;
    display: block;
    border-radius: 0 20px 0 0;
    transition: background-color 0.3s ease; 
    position: relative;
} 
.icon-close {
    display: none;
}
.menu-toggle:checked + .hamburger-icon .icon-open {
    display: none;
}

.menu-toggle:checked + .hamburger-icon .icon-close {
    display: inline;
}

/* Dropdown-listan för hamburgermenyn */
.hamburger-dropdown {
    /* background-color: rgba(0, 0, 0, 0.95); */
    background-color: var(--darkest-blue);
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;

    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;

   transition:
    opacity 0.35s cubic-bezier(.4,0,.2,1),
    transform 0.35s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0.35s;
}

@media screen and (max-width: 977px) {
    .menu ul li {
        margin: 0;
    }
    .hamburger-menu {
        display: block;
    }
/* 
    .hamburger-dropdown li:hover > .dropdown {
        display: block;
    } */
    .hamburger-dropdown li a,
    .hamburger-dropdown .dropdown li a {
        display: block;
        padding: 20px 25px;
        color: white;
        /* background-color: rgb(0, 0, 0); */
        text-decoration: none;
        transition: background-color 0.3s ease;
        width: 100%;
        box-sizing: border-box;
        text-align: right;

    }
    .menu-toggle:checked + .hamburger-icon {
        background-color: rgb(0, 0, 0);
    }
    .menu-toggle:checked + .hamburger-icon + .hamburger-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
     transition-delay: 0s;
    }
    .menu ul {
        display: none;
    }
    #offert-button-hamburger a{
        background-color: #f7c59f;
        border-radius: 50px;
        width: 250px;
        text-align: center;
        margin-bottom: 10px;
        margin-right: 10px;
        /* float: right; */
        color: black;
        font-size: 20px;
    }
    #offert-button-hamburger {
    display: flex;
    justify-content: flex-end;
}
}
/* =====================================
   home PAGE STYLES
===================================== */

.hero--home {
    position: relative;
    background-image: url("/images/elektriker-elinstallation.webp");
    background-size: cover;
    background-position: 50% 90%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    color: rgb(255, 255, 255);
    width: 100%;
    min-height: 90vh;
    background-attachment: scroll;
}

.hero--home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    /* height: 180vh; */
       background: rgba(25, 101, 158, 0.88);
    z-index: 0 /* Ligger under texten men över bakgrundsbilden */
}

.hero-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.hero-animate.show {
  opacity: 1;
  transform: translateY(0);
}
.hero__content {
    text-align: center;
}
.hero > * {
    position: relative;
    z-index: 1;
}
.section__grid > * {
    position: relative;
    z-index: 1;
}

.hero a:hover {
    color: var(--ljus-orange);
}

.hero__eyebrow {
    /* margin-top: 0; */
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    margin-top: 50px;
}
.hero__title {
    position: relative;
    margin-top: 0;
    text-align: left;
font-size: 45px;
line-height: normal;
z-index:100;
}

.hero__title.title_ort {
    text-align: center;
}

.hero__badges{
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* avstånd mellan figurerna */
}

.hero__badges figure {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 35%; /* två per rad (justera vid behov) */
    margin: 0;
    gap: 20px; /* avstånd mellan bild och text */
}

.hero__badges img {
    height: 50px;
}

/* --- Aside box --- */
.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
    text-align: center;
    z-index: 1;
}

.hero__aside h2 {
  font-size: 1.6rem;
  font-weight: 400;
}

.hero__aside a[href^="tel"] {
  font-size: 1.6rem;
}

.hero__aside ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: row;
    flex-wrap: nowrap;      /* 🚫 ingen radbrytning */
  white-space: nowrap;    /* 🚫 bryt inte text */
}

.hero__aside li a {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}


/* =====================================
   HERO SERVICES
===================================== */
.hero--services {
    background-image: url(/images/husfix.webp);
    background-size: cover;
    background-position: 50% 110%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: rgb(255, 255, 255);
    width: 100%;
    min-height: 70vh;
    background-attachment: fixed;
    z-index: 0;
}

.hero--services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    /* height: 180vh; */
    background: rgba(0, 23, 41, 0.42);
  
}

.hero--services h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    margin: 0 15%;
    font-weight: 400;
    width: 600px;
    line-height: 4.5rem;
}
.section--light-white h1 {
    font-weight: 400;
    font-size: 2.6rem;
    text-align: center;
}
@media(max-width:640px){
.rot-box-row {
    display: flex;
    flex-direction: column;
}
.hero--services h1 {
max-width: 300px;
font-size: 2.5rem;
margin: 0;
}
}
/* =====================================
   ABOUT US PAGE
===================================== */
.about-us-section {
        background: linear-gradient(284deg, rgb(247, 197, 159) 0%, rgb(239, 239, 208) 75%);
}
.card--about-us {
    max-width: 450px;
}
.card--comment {
    max-width: 300px;
}
.hero--about {
    padding-top: 200px;
}


/* =====================================
   FORM
===================================== */

.form-wrapper {
  background-color: var(--turkos);
  padding: 40px 30px;
box-sizing: border-box;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  min-width: 275px;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

.card-form {
  background: transparent;
  border: none;
  padding: 0;
}

/* -------------------------------------
   Rubriker & texter
------------------------------------- */

.wrap h2 {
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}

.step-title {
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
}

.label {
  display: block;
  font-size: 14px;
  color: #fff;
  margin: 10px 0 6px;
}

.muted {
  font-size: 12px;
  color: #fff;
}

/* -------------------------------------
   Inputs
------------------------------------- */

.input,
.textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="file"] {
  padding: 5px;
  border-radius: 8px;
  background: #fff;
width:100%;
color: black;
}

/* -------------------------------------
   Grid
------------------------------------- */

.row-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .row-form {
    grid-template-columns: 1fr;
  }
.form-wrapper {
padding:0;
}
}

/* -------------------------------------
   Filer
------------------------------------- */

.files {
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
}

.file-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.file-row input[type="file"] {
  flex: 1;
}

.file-row button {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.file-row .remove {
  background: #ffe7e7;
  color: #b91c1c;
  display: none;
}

/* -------------------------------------
   Knappar
------------------------------------- */

.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn.primary {
  background: var(--sand);
  color: var(--blue);
}

.btn.secondary {
  background: #eef6ee;
  color: var(--brand);
}

.btn:hover {
  opacity: 0.9;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
  }
}

/* -------------------------------------
   Statusmeddelanden
------------------------------------- */

.status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  display: none;
}

.status.ok {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.status.err {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* -------------------------------------
   Spinner
------------------------------------- */

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn-text {
  opacity: 0.95;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -------------------------------------
   Utilities
------------------------------------- */

.hide {
  display: none;
}

.avtalsform-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.avtalsform-wrapper.active {
  max-height: 2000px;
}

input:focus {
  outline: none;
  border-color: #1f7aff; /* anpassa till Elaby */
  box-shadow: 0 0 0 2px rgba(31,122,255,0.15);
}

.page-elservice-avtal .files, .page-elservice-avtal .avtal-message-label, .page-elservice-avtal .textarea{
  display: none;
}
.page-elservice-avtal #form-title {
color: white;
}
.page-elservice-avtal .form-wrapper {
  background: var(--blue);
  border: 1px solid #dce6ef;
}
.page-elservice-avtal {
    display: flex;
    justify-content: center;
    padding-top: 0;
}

/* =====================================
   FEATURE CARDSbutton
===================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.card img {
  width: 70px;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.blue-card {
    background-color: var(--blue-light);
}

.section--light .blue-card img {
  width: 70px; /* samma som index */
}

.cards--custom-comments {
    background-color: var(--blue);
    display: flex;
    flex-direction: column;
}

.row--one-comment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.row--one-comment img {
    margin-bottom: 20px;
}
.card-img-container img {
    width: 250px;
}
.row--two-comments {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

@media (max-width: 700px) {

  .cards {
    grid-template-columns: 1fr;
  }
}

.cards--services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 1020px) {
    .cards--services {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .cards--services {
        grid-template-columns: 1fr;
    }
    article.cards.row--two-comments {
        flex-direction: column;
        gap: 0;
    }
}

.card--services {
   display: flex;
   flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    text-align: center;
    padding: 30px;
    background-color: #efefd0;
}


/* =====================================
   CTA
===================================== */
.rot-button {
    background-color: var(--blue);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.25s ease;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.12); */
}
.rot-button:hover {
color: var(--ljus-orange);
}
.button--secondary {
    background-color: var(--sand);
    color: var(--blue);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
}

.button--white {
    background-color: white;
    color: var(--blue);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
}


.cta {

  display: flex;
flex-direction: row;
    justify-content: space-between;
}

.cta__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (max-width:720px) {
    .cta {
        flex-direction: column;
        text-align: center;
    }
.rot-button, .button--white {
padding: 10px;
}
 
}

/* =====================================
   KONTAKT
===================================== */
.contact-page-section {
    display: flex;
    flex-direction: row;
    justify-content: center !important;
    align-items: center;
    gap: 50px;
}

.contact-page-section h2 {
 font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}
.kontakt-boxes h3 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    height: 180px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    transform: translateY(20px);
    opacity: 0;
    align-content: center;
    padding: 20px 10px;
    text-align: center;
  }

  .kontakt-boxes h3:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.2);
}
/* Animationsfördröjning för varje h3 */
.kontakt-boxes h3:nth-of-type(1) { animation-delay: 0.1s; }
.kontakt-boxes h3:nth-of-type(2) { animation-delay: 0.3s; }
.kontakt-boxes h3:nth-of-type(3) { animation-delay: 0.5s; }
.kontakt-boxes h3:nth-of-type(4) { animation-delay: 0.7s; }
/* Animationen */
@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.contact-section {
padding:0;
width:50%;
}
/* =====================================
  ORTER
===================================== */

.hero__content .img__ort {
    width: 100%;
    max-width: 400px;
    margin: 2rem 0;
    max-height: unset;
    border-radius: var(--radius-md);
}

.section-haninge-map {
    background-image: var(--hero-karta);
}
.section-haninge-map::before {
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
 /*   height: 180vh;*/
    background-color: rgba(0, 0, 0, 0.63);
    z-index: 0; /* Ligger under texten men över bakgrundsbilden */
}

.background-img {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.content_white {
    position: relative;
    z-index: 2;
    color: white;
}


/* =====================================
  JOBBA HOS OSS
===================================== */
.hero--work {
    background-image: url(/images/elaby-fixarhem.webp);
    background-size: cover;
    background-position: 50% 90%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.hero--work::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    /* height: 180vh; */
       background: rgba(25, 100, 158, 0.664);
    z-index: 0 /* Ligger under texten men över bakgrundsbilden */
}


.row--work {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    font-weight: 400;
}
.row--work h1 {
    font-size: 2.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2em;
}
@media (max-width: 768px) {
.hero--offer, .row--work {
        flex-direction: column;
}
}


/* =====================================
   PAYMENT
===================================== */
.section--dark ul {
  margin-top: 2rem;
}
.row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-content: baseline;
    margin-top: 100px;
}
.row img {
    max-height: 30px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width:1100px) {
  .row {
   justify-content: center;
  }
}

.row-elservice {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}

@media (max-width:900px){
.row-elservice{
    flex-direction: column;
    align-items: start;
}
}
.elaby-subscription-highlight {
  background-color: #f6f7f8;
}

.elaby-subscription-inner {
  max-width: 600px;
}

.elaby-subscription-inner img, .row-elservice img {
    max-width: 300px;
    border-radius: 20px;
     margin-top: 20px;
    margin-bottom: 20px;
} 
@media (max-width:900px){
.row-elservice img {
    max-width: 250px;
}
}

.elaby-subscription-highlight h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.elaby-subscription-highlight p {
  margin-bottom: 1rem;
  color: #444;
  line-height: 1.6;
}

.elaby-subscription-link {
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.elaby-subscription-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .elaby-subscription-highlight {
    padding: 1.5rem 1rem;
  }

  .elaby-subscription-highlight h3 {
    font-size: 1.2rem;
  }
}




/* =====================================
   KAM-MODELL
===================================== */

.kam-document {
    background-color: #efefd0;
}

.kam-document h1{
   text-align: center;
margin-top: 100px;
margin-bottom:0;
}
/* =====================================
   FOOTER
===================================== */

footer {
 background-image: linear-gradient(147deg, rgb(0, 23, 41) 0%, rgb(0, 78, 137) 100%);
 height: auto;
 position: relative;
 z-index: 20;
 display: flex;
 flex-direction: row;
 justify-content: space-between;
 align-items: start;
 flex-wrap: wrap;
 padding: 100px 15% 50px;
}
.section--light .row {
    margin-top: 0;
}
/* .section--light a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
} */

.section--light img {
    width: 150px;
    z-index: 10;
}

.section--light a:hover {
    color:var(--ljus-orange);
}
.column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
footer h5 {
    font-size: 30px;
    margin-bottom: 30px;
    color:white;
    margin-top: 0;
}
.column2-footer {
    margin-top: 60px;
}
.blue-links-footer{
  color:#1a659e;
}
.row-social {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.row-social .icon {
    width: 25px;
    height: auto;
    fill: white;
    transition: fill 0.3s ease;
  }

  .row-social .icon:hover {
    fill: var(--ljus-orange)
  }

#center-content-footer {
    align-items: center;
}
figure figcaption {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 550px) {
footer {
    flex-direction: column;
    align-items: flex-start;
    /* width: 100%; */
}
.column2-footer {
    margin-top: 0;
}

}
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 20px;
    background: #222;
    color: #fff;
    display: none;
    z-index: 9999;
}
#cookie-banner button {
    margin-left: 10px;
    padding: 8px 14px;
}



/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section__grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1020px) {
    .hero__aside ul {
        flex-direction: column;
    }
.contact-section {
width: 100%;
display: flex;
        justify-content: center;
}

}
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-content: center;
        text-align: center;
        padding: 7rem 1.5rem 4rem;
    }
    .hero__badges {
        margin-bottom: 100px;
        justify-content: center;
    }
    
    .hero--home {
        background-attachment: scroll;
        min-height: 100vh;
    }
.section--light-white h1 {
font-size: 1.9rem;
}
}

@media (max-width: 700px) {
  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__badges {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .cta__actions {
    flex-direction: column;
  }
  .hero__badges figure {
    display: flex;
    flex-direction: column;
  }
}


/* =====================================
   INTRO + FORM GRID
===================================== */
.section__grid {
  display: flex;
  /* grid-template-columns: 1.4fr 1fr; */
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.section__grid h2 {
    font-size: 2.4rem;
    font-weight: 400;
}

.urgent {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-transform: uppercase;
  font-size: x-large;
}

#urgent img {
  width: 60px;
  background-color: white;
  padding: 10px;
    border-radius: 50%;
}

@media (max-width: 1020px) {
  .section__grid {
    flex-direction: column;
  }
}


/* =====================================
   FLOATING CHAT BUTTON
===================================== */
.floating-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;

}

#messages-chat-icon img {
    width: 48px;
    height: 62px;
    filter: drop-shadow(0 8px 10px rgb(0, 0, 0));
    transition: transform 0.2s ease;

}

#messages-chat-icon img:hover {
    transform: scale(1.08);
}
.elementor-button {

display:flex;
 flex-direction: column;
  align-items: center;
 font-weight: 500;
  color: #F7C59F;
}

/* =====================================
   MODAL BACKDROP
===================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1200;
    inset: 0;
    background-color: rgba(0,0,0,0.45); /* snygg overlay */
    backdrop-filter: blur(2px);
    overscroll-behavior: contain;
}

/* =====================================
   MODAL WINDOW
===================================== */
body.modal-open {
    overflow: hidden;
}

#chat-div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    overflow: hidden;

    background: var(--sand);
    position: fixed;
    right: 40px;
    bottom: 30px;

    width: 320px;
    max-height: calc(100vh - 200px);

    border-radius: 16px;
    border: 1px solid #d6d6d6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
    animation: slideUp 0.35s ease-out;
}

/* Slide-animation */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close-knapp */
.modal-content .close img {
    width: 20px;
    cursor: pointer;
    float: right;
    opacity: 0.6;
    transition: opacity 0.2s;
    /* margin-top: -35px;
    margin-right: -32px; */
}
.modal-content .close img:hover {
    opacity: 1;
}

/* Rubriker & etiketter */
.modal-content h5 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--blue-dark) /* mörkare blå */
}

.modal-content label {
    font-size: 13px;
    color: var(--blue-dark)
}

/* Form-fields */
.modal form input,
.modal form textarea {
    width: 92%;
    padding: 10px 12px;
    background-color: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #d4d4d4;
    font-family: inherit;
    margin-bottom: 12px;
    transition: border 0.2s ease, background-color 0.2s ease;
}

.modal form input:focus,
.modal form textarea:focus {
    outline: none;
    border: 2px solid var(--blue);
    background-color: #fff;
}

/* Start-knapp */
.modal form button {
    background-color: var(--blue);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.modal form button:hover {
    background-color: var(--sand);
    border: 2px solid var(--blue);
    color: black;
}

.btn-arrow-animated {
    position: relative;
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: padding-right 0.3s ease;
}

.btn-arrow-animated::after {
    content: "→";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 18px;
}

.btn-arrow-animated:hover {
    padding-right: 28px; /* ger plats när pilen flyttar sig */
}

.btn-arrow-animated:hover::after {
    transform: translate(6px, -50%);
}

/* =====================================
   CHAT AREA
===================================== */
.chat-box {
       flex: 1;
    min-height: 0;
        overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    padding: 12px;
    border-radius: 12px;
    border: none;
    margin-bottom: 12px;

}

/* Chatmeddelanden */
.message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.35;
}

.message.bot {
    background: #e7f5fb;
    border: 1px solid #ccebf4;
    color: #000;
}

.message.user {
    background: #dff6df;
    border: 1px solid #b2e8b2;
    margin-left: auto;
color: #000;
}

/* Skicka-knappar i chatten */
#send-message,
#close-chat,
.chat-button {
    background-color: var(--blue);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    margin-top: 6px;
    transition: background-color 0.25s ease;
}

#send-message:hover,
#close-chat:hover,
.chat-button:hover {
    background-color: var(--sand);
    color: #000;
    border: 1px solid var(--blue);
}

/* Chat-input */
#user-input {
    height: 90px;
    resize: none;
    padding: 10px;
    background-color: #f5f5f5;
    position: sticky;
  bottom: 0;
}

.chat-box{
  position: relative;
  padding-bottom: 4px; /* så dots inte lägger sig över sista bubblan */
}

.typing-indicator{
  left: 10px;
  bottom: 5px;
  display: none;
  padding: 0px 10px;
  border-radius: 14px;
  background: transparent;
  border: none;
}

.typing-indicator span{
  display:inline-block;
  width:4px;
  height:4px;
  border-radius:50%;
  margin:0 2px;
  background:#111;
  animation:typingDot 1s infinite ease-in-out;
  opacity:.35;
}
.typing-indicator span:nth-child(2){animation-delay:.15s}
.typing-indicator span:nth-child(3){animation-delay:.3s}

@keyframes typingDot{
  0%,80%,100%{transform:translateY(0);opacity:.35}
  40%{transform:translateY(-3px);opacity:1}
}

/* =====================================
   MOBILANPASSNING FÖR CHATTMODAL
===================================== */

@media (max-width: 768px) {
    .modal-content {
       /* width: 90%; */
        height: 80dvh;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 0;
       transform: translateX(-50%);
        border-radius: 16px 16px 0 0;

        /* border-radius: 16px; */
    }

    .chat-box {
       height: auto;
        flex: 1;
    }

    #user-input {
        height: 70px;
        font-size: 16px; /* bättre läsbarhet */
    }

    .modal form input,
    .modal form textarea {
        height: 45px;
        font-size: 16px;
    }

    .modal form button,
    #send-message,
    #close-chat {
        width: 100%;
        padding: 14px;
        margin-top: 8px;
        font-size: 16px;
    }

    #messages-chat-icon img {
        width: 48px; /* mindre floating-knapp på mobil */
    	height: 62px;
    }
    .floating-chat-button{
        right: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
      /*  width: 94%; */
        height: 75dvh;
        margin-top: 30px;
    }
}



/* ===== Artikelsektion ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

/* ===== Artikelkort ===== */
.article-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ===== Bild ===== */
.article-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* ===== Innehåll ===== */
.article-content {
  padding: 1.5rem;
}

/* Rubrik */
.article-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.article-content h3 a {
  color: #0f172a; /* Mörk blågrå – seriös */
  text-decoration: none;
}

.article-content h3 a:hover {
  text-decoration: underline;
}

/* Text */
.article-content p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

/* Läs mer-länk */
.read-more {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2563eb; /* El-blå */
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #1e40af;
}



/* ===== Wrapper ===== */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ===== Artikel ===== */
.elfel-artikel {
  color: #0f172a;
}

/* ===== Hero-bild ===== */
.elfel-artikel img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== H1 ===== */
.elfel-artikel h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #020617;
}

/* ===== Lead-text ===== */
.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 4px solid #2563eb;
}

/* ===== Mellanrubriker ===== */
.elfel-artikel h3 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  color: #020617;
}

/* ===== Brödtext ===== */
.elfel-artikel p {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1.25rem;
}

/* ===== Listor ===== */
.elfel-artikel ul {
  margin: 1rem 0 1.75rem 1.25rem;
  padding-left: 1rem;
}

.elfel-artikel li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: #334155;
}

/* ===== Tips / callout ===== */
.elfel-artikel p b {
  color: #0f172a;
}

.elfel-artikel p:last-of-type {
  background: #f1f5f9;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

/* ===== Meta info ===== */
.meta {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #64748b;
}

/* ===== Responsivt ===== */


/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
margin-top:120px;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 0.35rem;
}

.breadcrumbs .current {
  color: #475569;
  font-weight: 500;
}


/* ===== Responsivt ===== */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .elfel-artikel h1 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .elfel-artikel h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card img {
    height: 190px;
  }
}

/* ===== Abonnemang – erbjudande ===== */
.elabonnemang-offer {
  display: grid;

  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  margin: 8em 0 4em 0;
}

.offer-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #020617;
}

.offer-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 2rem;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.offer-list li {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

.offer-text {
  font-size: 1rem;
  color: #475569;
}

/* ===== Prisbox ===== */
.offer-price-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  position: relative;
}

.price-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.price-main {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #020617;
}

.price-period {
  font-size: 1rem;
  color: #475569;
}

.price-note {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.75rem 0 2rem;
}

/* ===== CTA ===== 
.cta-button {
  display: block;
  background: #2563eb;
  color: #ffffff;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.cta-button:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
} */

.cta-sub {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ===== Responsivt ===== */
@media (max-width: 900px) {
  .elabonnemang-offer {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

