:root {
--blue-dark: #141414;      
--blue: #4B5D52;          
--blue-light: #9DB8A0;    
--beige: #F6F5F2;          
--sand: #C57D25;           
--turkos:#7A7A7A ;


  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
}
*, *::before, *::after {
  box-sizing: border-box;
}
@font-face {
    font-family: 'Inter';
    src: url('/Inter-VariableFont_opsz\,wght.ttf') format('ttf');
    font-weight:lighter;
    font-style: normal;
    font-display: swap;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  
  color: #111;
}

h1, h2, h3 {
  font-weight: 300;
  margin: 0 0 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 6rem 12%;
  /* padding: 120px 50px; */
  position: relative;
  z-index: 1;
}


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

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

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

.section--dark {
  background-color: var(--blue);
  color: white;
}

a:hover {
  color: var(--sand);
}


@media (max-width: 900px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .pictures-main-content {
    justify-content: center;
  }
}

.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;
}

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

/* =====================================
 HEADER
===================================== */

.header {
    background-color: black;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10%;
    padding-right: 10%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.logo-header {
  height: 120px;
  display: flex;
    align-items: center;  /* CENTRERAR loggan vertikalt */
    overflow: hidden;
}
.logo-header img{
    max-height: 100px;
    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(--turkos)
}
#offert-button a{
    background-color: var(--sand);
    border-radius: 50px;
    padding: 6px 30px;
    text-decoration: none;
    color: black;
    border: 1px solid var(--blue);
}
#offert-button a:hover {
  background-color: var(--blue);
}

/* =====================================
   BUTTONS
===================================== */
.button {
  border-radius: 50px;
  padding: 0.5rem 2.6rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}

.button--primary {
  background-color: var(--blue);
  color: white;
}

.button--light {
  background-color: white;
  color: black;
}

.button--ghost {
  border: 2px solid white;
  color: white;
}

.button--blue {
    color: var(--blue-light);
}
.button--secondary {
    background-color: white;
    color: var(--blue);
}
.button:hover {
  color: var(--sand);
}
.button--primary:hover {
  background-color: var(--sand);
  color: white;
}



@media (max-width:1043px){
  .button {
    padding: 0.5rem 0.8rem;
  }
}


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

.card {
  background-color: var(--beige);
  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(--turkos);
}
.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 {
  /*  width: 250px;*/
    margin-bottom: 20px;
}
.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;
    }
}

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


/* =====================================
   CTA
===================================== */
.cta {

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

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

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


/* =====================================
   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: 200px;
    z-index: 10;
}

.section--light a:hover {
    color:var(--turkos);
}
.column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-bottom: 100px;
}
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(--turkos)
  }

#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;
}


  /* =====================================
   FORM
===================================== 
/* =========================
   VARIABLES & BASE
========================= */
:root{
  --brand:#0c6809;
  --bg:#f4f4f4;
  --card:#fff;
  --text:#1d1d1f;
  --muted:#6b7280;
  --danger:#b91c1c;
  --border:#e5e7eb;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* =========================
   LAYOUT
========================= */
.wrap{
  max-width:780px;
  margin:0 auto;
  padding:0;
}

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

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

/* =========================
   HEADINGS & TEXT
========================= */
h2{
  margin:0 0 14px;
  letter-spacing:.5px;
}

.step-title{
  margin:0 0 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;
}

/* =========================
   GRID / ROWS
========================= */
.row-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

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

/* =========================
   BUTTONS
========================= */
.btn{
  width:100%;
  border:0;
  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:#435249;
  color:#fff;
}

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

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

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

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

/* =========================
   FILE UPLOAD
========================= */
.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;
}

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

/* =========================
   STATUS MESSAGES
========================= */
.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 / STATES
========================= */
.spinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  animation:spin .8s linear infinite;
  display:none;
}

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

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

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

.hide{
  display:none;
}

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

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

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

/* =====================================
   Hamburgermeny
===================================== */

 

.hamburger-menu {
    display: none;
    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);
    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;
    }
}

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

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

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

/* =====================================
   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(--beige);
    position: fixed;
    right: 40px;
    bottom: 30px;

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

    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: 100%;
    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;
}
/* =====================================
   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 */
    }
    .floating-chat-button{
        right: 10px;
    }
}

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

/* =====================================
   home PAGE STYLES
===================================== */

.hero--home {
    position: relative;
    background-image: url("/images/elektriker-elinstallation.jpg");
    background-size: cover;
    background-position: center;
    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: 70vh;

    background-attachment: fixed;
}

.hero--home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 180vh;
    background-color: #9db8a0dc;
    /* background-color: #00707abd;  */
    z-index: 0 /* Ligger under texten men över bakgrundsbilden */
}
.hero__content {
    text-align: center;
}
.hero > * {
    position: relative;
    z-index: 1;
}
.section__grid > * {
    position: relative;
    z-index: 1;
}
.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 {
    margin-top: 0;
    text-align: left;
font-size: 45px;
}

.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;
}

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

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

.hero__aside ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: row;
}

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

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

}

@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;
  }
}


/* =====================================
   ABAPOUT US PAGE STYLES
===================================== */
.about-us-section {
background: linear-gradient(284deg, #006F7A 0%,  #c57d25 75%);
     align-items: center;
}
.about-us-section h2 {
        margin-bottom: 10px;
        font-weight: 600;
}    

.hero--about {
    padding-top: 250px;
}

.card--about-us {
    width: 90%;
}
.card--about-us img {
    display: flex;
    margin: auto;
}



.section-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}


@media (max-width: 900px) {
    .row--two-comments {
        flex-direction: column;
    }
}

.card--comment {
    display: flex;
    flex-direction: column;
    color:white;
    font-size: x-large;
    height:  auto;
    width: 100%;
}

.card--comment h5 {
    font-weight: 300;
}

.card--comment img {
    width: 40px;
}
.card-img-container {
    aspect-ratio: 1 / 1;   /* kvadratiska (kan ändras) */
    overflow: hidden;
}

.card-img-container img {
  width: 100%;
    height: 100%;
    object-fit: cover;    /* beskär istället för att tryckas ihop */
    display: block;
    border-radius: var(--radius-lg);
}
.pictures-omoss-instagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) {
    .pictures-omoss-instagram {
        grid-template-columns: repeat(2, 1fr);
        
    }
       .pictures-omoss-instagram > :last-child {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {
    .pictures-omoss-instagram {
        grid-template-columns: 1fr;
    }
       .pictures-omoss-instagram > :last-child {
        grid-column: span 1;
    }
}
/* =====================================
   SERVICES PAGE STYLES
===================================== */


.hero--services {
    position: relative;
    background-image: url("/images/elektriker-tjänster.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 70vh;
    align-items: center;
}

.hero--services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 160vh;
     background-color:#9db8a0dc; /* mörkblå med 50% opacitet */
    z-index: 0
}
.rot-box-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.box-rot {
    max-width: 500px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.41);
    padding: 7%;
    max-height: 500px;
}
.box img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}
.section--light-white {
    background-color: rgb(255, 255, 224);
    text-align: center;
}
.section__content {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}


/* =====================================
  CONTACT PAGE STYLES
===================================== */

.contact-page-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
}
.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);
}

/* =====================================
  WORK PAGE STYLES
===================================== */

.hero--work {
    background-image: url("/images/elkabel-elinstallation.jpg");
    justify-content: left;
}

.hero--work h1 {
    font-weight: 500;
}
.hero--work::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 160vh;
   background-color: #9db8a0dc; /* mörkblå med 50% opacitet */
    z-index: 0 /* Ligger under texten men över bakgrundsbilden */
}
.hero--work .hero__content {
   text-align: left;
   align-items: flex-start;
   position: relative;
   z-index: 2;
}

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

@media (max-width:700px){
    .row--work {
        flex-direction: column;
        align-items: center;
    }
    .hero--services {
        flex-direction: column;
    }
    .left {
    min-width: 100%;
    }
       .hero--work {
        background-attachment: scroll;
        min-height: 100vh;
    }
}

/* =====================================
  OFFER PAGE STYLES
===================================== */

.hero--offer {
    justify-content: space-between;
    background-image: url("/images/elarbete-offert.jpg") ;
}
@media (max-width:700px){
    .hero--offer {
        flex-direction: column;
        background-attachment: scroll;
        min-height: 100vh;
    }

}

.aside--offer {
    position: relative;
    z-index: 2;
}
.aside--offer img {
    max-width: 300px;
}

.contact-section {
    padding: 0;
}
.left {
    max-width: 45%;
    padding-right: 20px;
}

/* =====================================
   HANINGE
===================================== */
.content_white {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: rgb(189, 188, 188);
}

.hero__content .img__ort {
  width: 100%;
  max-width: 400px;
  margin: 2rem 0;
   max-height: unset;
   border-radius: var(--radius-md);
}
@media (max-width:768px) {
.hero__content .title_ort {  
    text-align: center;
}

}





.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}
}
