/*=====================================
  Custom CSS – Hero Slider (cleaned)
======================================*/

/* --- Container --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;              /* fullscreen */
  min-height: 560px;
  overflow: hidden;
  background: #0c0c0c;
  color: #fff;

  /* Drag cursor */
  cursor: grab;
  touch-action: pan-y;        /* allow vertical page scroll; we handle horizontal swipes */
}
.hero-slider.is-grabbing { cursor: grabbing; }

/* --- Slide base --- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .9s ease, transform 1.4s ease;
  pointer-events: none;       /* only active slide should receive clicks */
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Background via CSS variable --bg (robust: no shorthand) */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Video slide */
.hero-slide--video { background: #000; }
.hero-slide--video::before { display: none; } /* don't paint image layer on video slides */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;                 /* under overlay/content */
  pointer-events: none;       /* don't block clicks */
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,.45) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  align-content: center;
  text-align: left;
}

/* Small “equalizer” icon (optional) */
.hero-icon {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
}
.hero-icon span {
  width: 3px;
  height: 22px;
  background: rgba(255,255,255,.7);
  display: block;
  border-radius: 2px;
  animation: beat 1.2s ease-in-out infinite;
}
.hero-icon span:nth-child(2){ animation-delay:.1s }
.hero-icon span:nth-child(3){ animation-delay:.2s }
.hero-icon span:nth-child(4){ animation-delay:.3s }
.hero-icon span:nth-child(5){ animation-delay:.4s }
@keyframes beat {
  0%, 100% { transform: scaleY(0.6); opacity:.7 }
  50%      { transform: scaleY(1.1); opacity:1 }
}

/* Typography */
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 12px;
  opacity: .85;
  margin: 0 0 8px;
}
.hero-title {
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: .015em;
  font-weight: 200;
  margin: 0 0 10px;
  color: #fff;
}
.hero-sub {
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 720px;
  margin: 0 0 28px;
}

/* CTA */
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-button {
  display: inline-block;
  padding: 14px 26px;
  background: #fff;
  color: #000;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.hero-button:hover { background: #eaeaea; transform: translateY(-1px); }

.hero-link {
  color: #fff;
  opacity: .9;
  text-decoration: none;
  font-weight: 600;
  align-self: center;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
}
.hero-link:hover { opacity: 1; border-color: #fff; }

/* Arrows (hidden as requested) */
.hero-nav { display: none !important; }

/* Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.hero-dots button.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-icon span { animation: none; }
}
/* Init: transparent overlay ovanpå bannern */
.site-header.header--overlay .main-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 1000;
  transition: background 1.2s ease, box-shadow 1s ease, transform 1s ease;
}

/* Ljus text/ikoner när headern ligger över bannern (justera vid behov) */
.site-header.header--overlay .header-nav .nav > li > a,
.site-header.header--overlay .fa,
.site-header.header--overlay .fa-brands {
  color: #fff;
}

/* När sidan är scrollad: fäst i topp + solid bakgrund */
body.is-scrolled .site-header.header--overlay .main-bar {
  position: fixed;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Mörk text/ikoner när bakgrunden är vit */
body.is-scrolled .site-header.header--overlay .header-nav .nav > li > a,
body.is-scrolled .site-header.header--overlay .fa,
body.is-scrolled .site-header.header--overlay .fa-brands {
  color: #111;
}

/* (Valfritt) justera burger-bars färg */
.site-header.header--overlay .icon-bar { background: #fff; }
body.is-scrolled .site-header.header--overlay .icon-bar { background: #111; }

/* Säkerställ att bannern hamnar under headern */
.swiper, .swiper-container, .hero, .banner {
  position: relative;
  z-index: 1;
}

/* Om du vill “bleka” mörk logga över bild */
.site-header.header--overlay .logo-header img { filter: drop-shadow(0 0 1px rgba(0,0,0,0.3)) brightness(0) invert(1); }
body.is-scrolled .site-header.header--overlay .logo-header img { filter: none; }


/* Hover-effekt när headern är transparent */
.site-header.header--overlay .header-nav .nav > li > a:hover {
  color: #f0c14b; /* t.ex. guldig ton – byt till valfri färg */
}

/* Solid header (efter scroll) */
body.is-scrolled .site-header.header--overlay .header-nav .nav > li > a {
  color: #111;
}

/* Hover-effekt även när man har scrollat */
body.is-scrolled .site-header.header--overlay .header-nav .nav > li > a:hover {
  color: #a1a1a1;
}

/* (Valfritt) snygg underline-animation vid hover */
.site-header.header--overlay .header-nav .nav > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.site-header.header--overlay .header-nav .nav > li > a:hover::after {
  width: 100%;
}

/* ==============================
   MOBILE MENU FIX
   ============================== */

/* För små skärmar: återställ länkfärg till mörk */
@media (max-width: 991px) {
  .site-header.header--overlay .header-nav .nav > li > a {
    color: #111 !important;
  }

  .site-header.header--overlay .header-nav .nav > li > a:hover {
    color: #f0c14b !important; /* valfri hoverfärg */
  }

  /* Om bakgrunden är vit på mobilmenyn */
  .header-nav.navbar-collapse {
    background: #fff !important;
  }

  /* Se till att även ikoner syns */
  .site-header.header--overlay .fa,
  .site-header.header--overlay .fa-brands {
    color: #111 !important;
  }
}

/* Nollställ alltid filter på loggan */
.site-header .logo-header img {
  filter: none !important;
}

/* Endast desktop + endast när INTE scrollad */
@media (min-width: 992px) {
  body:not(.is-scrolled) .site-header.header--overlay .logo-header img.use-invert {
    filter: brightness(0) invert(1);
  }
}

/* ==============================
   FIX: Delningsikon i mobilvy högst upp
   ============================== */

/* Mobil: vit ikon när man är högst upp (inte scrollad) */
@media (max-width: 991px) {
  body:not(.is-scrolled) .site-header.header--overlay .share-icon-btn .site-search-btn i {
    color: #fff !important;
  }
  
  /* När man scrollar: mörk ikon som resten */
  body.is-scrolled .site-header.header--overlay .share-icon-btn .site-search-btn i {
    color: #111 !important;
  }
}

/* ==============================
   EXKLUSIV NATURINSPIRERAD STIL
   ============================== */

body {
  background-color: #f8f6f2;
  color: #2a2a2a;
  font-family: 'Poppins', sans-serif;
}

/* Header-bakgrund vid scroll */
body.is-scrolled .site-header.header--overlay .main-bar {
  background: rgba(248, 246, 242, 0.98) !important; /* varmare ton än vit */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Länkar */
a {
  color: #a77b4f;
  transition: color 0.3s ease;
}
a:hover {
  color: #c19e6b;
}

/* Nav-länkar (desktop) */
.site-header .header-nav .nav > li > a {
  color: #2a2a2a;
}
body:not(.is-scrolled) .site-header.header--overlay .header-nav .nav > li > a {
  color: #fff;
}
body.is-scrolled .site-header.header--overlay .header-nav .nav > li > a:hover {
  color: #a77b4f;
}

/* Sektioner */
.section {
  background-color: #f8f6f2;
}

/* Knappstil */
.btn,
a.btn {
  background: #a77b4f;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #b89362;
}


body {
  background-color: #f8f6f2;
  background-image: url('/images/bg-texture-light.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: lighten;
}

/* 1) Tvinga själva footern att få bg-gray */
footer.bg-gray,
footer.bg-gray.footer-light,
footer.bg-gray.footer-wide {
  background-color: #e9e4dd !important; /* din nya bg-gray */
}

/* 2) Många teman sätter bakgrund på .footer-bottom – nollställ/ärv */
footer.bg-gray .footer-bottom {
  background: transparent !important;
}

/* 3) Om .footer-light målade botten ändå – säkerställ samma färg */
footer.bg-gray.footer-light .footer-bottom {
  background-color: #e9e4dd !important;
}

/* 4) Overlay-lager som ibland lägger sig över */
footer .overlay-main {
  background: transparent !important; /* opacity:0 finns, men detta säkrar */
}

/* 5) Vissa teman har pseudo-element på footern */
footer.bg-gray::before,
footer.bg-gray::after {
  background: none !important;
}


/* ==========================
   Social share button behavior
   ========================== */

/* 1) Knappen själv när header är transparent (desktop top) */
body:not(.is-scrolled) .site-header.header--overlay .share-icon-btn .site-search-btn i {
  color: #fff !important;
}



@media (max-width: 991px){
  body:not(.is-scrolled) .support { }
  .site-header.header--overlay .share-icon-btn .site-search-btn i {
    color: #2a2a2a !important;
  }
}

/* 3) Ikonerna i dropdown-menyn ska ALLTID vara svarta */
.share-icon-btn .dropdown-menu i,
.share-icon-btn .dropdown-menu .fa-brands,
.share-icon-btn .dropdown-menu a {
  color: #2a2a2a !important;
}

/* 4) Dropdown-bakgrunden för säkerhets skull */
.share-icon-btn .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #e3ded7;
}
/* =======================================
   FIX: Dropdown-meny bakgrund (desktop)
   =============================== */

.header-nav .sub-menu,
.navbar-nav .sub-menu,
.site-header .sub-menu,
.header-style-1 .sub-menu {
    background-color: #f3efe8 !important;   /* varm beige */
    border: 1px solid #e3ded7 !important;    /* mjuk linje */
}

/* Länkar i dropdown */
.header-nav .sub-menu li a {
    color: #2a2a2a !important;               /* harmoniserad textfärg */
    padding: 12px 18px;
}

/* Hover i dropdown */
.header-nav .sub-menu li a:hover {
    background-color: #e9e4dd !important;    /* lite mörkare varm ton */
    color: #a77b4f !important;               /* varm accent */
}


/* Container */
.project-card {
    position: relative;
    overflow: hidden;
    height: 420px;
    cursor: pointer;
}

/* Bild */
.project-card__img {
    width: 100%;
    height: 100%;
}

.project-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;   /* smidig zoom */
}

/* Hover-ZOOM */
.project-card:hover .project-card__img img {
    transform: scale(1.06);
}

/* Ruta nere i hörnet */
.project-card__overlay {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    width: 70%;
    z-index: 2;

    transition: background .3s ease, transform .3s ease;
}

/* Fade blir lite mörkare vid hover */
.project-card:hover .project-card__overlay {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-4px);
}

/* Titel */
.project-card__title {
  color: #fff;
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
}

/* Meta */
.project-card__meta {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Läs mer-länk (dold först) */
.project-card__more {
    margin-top: 8px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
    color: #fff;
    text-decoration: underline;
}

/* Visa "Läs mer" vid hover */
.project-card:hover .project-card__more {
    opacity: 1;
    transform: translateY(0);
}


/* Sektionen i stort */
.testimonial-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 520px;
    color: #fff;
    background: #000; /* fallback om bild ej laddas */
    overflow: hidden;
}

/* Rubrik överst i mitten */
.testimonial-hero-heading {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.testimonial-hero-heading h2 {
    color: #fff;
}

.testimonial-hero-heading .wt-separator .bg-white {
    background: #fff;
}

/* Varje slide */
.testimonial-hero-slide {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center;
}

/* mörk overlay över bilden */
.testimonial-hero-overlay {
    position: absolute;
    inset: 0;
    padding: 140px 10%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.75)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* citat-ikon högst upp */
.testimonial-hero-icon {
    font-size: 40px;
    margin-bottom: 30px;
}

.testimonial-hero-icon i + i {
    margin-left: 6px;
}

/* texten (ganska stor) */
.testimonial-hero-text {
    max-width: 900px;
    font-size: 28px;
    line-height: 1.4;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* namn + roll */
.testimonial-hero-person {
    text-align: center;
}

.testimonial-hero-line {
    width: 120px;
    height: 1px;
    background: #fff;
    margin: 0 auto 18px;
    opacity: 0.8;
}

.testimonial-hero-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.testimonial-hero-role {
    font-size: 14px;
    opacity: 0.8;
}

/* Owl-nav – pilar vänster/höger mitt på höjden */
.testimonial-home .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
}

.testimonial-home .owl-nav button.owl-prev,
.testimonial-home .owl-nav button.owl-next {
    background: transparent !important;
    border: none;
    font-size: 32px;
    color: #fff !important;
    pointer-events: auto;
}

.testimonial-home .owl-nav button.owl-prev:hover,
.testimonial-home .owl-nav button.owl-next:hover {
    transform: scale(1.1);
}

/* Punkter om du använder dem */
.testimonial-home .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsiv – mindre text på mobil */
@media (max-width: 768px) {
    .testimonial-hero-overlay {
        padding: 120px 20px 80px;
    }
    .testimonial-hero-text {
        font-size: 18px;
    }
    .testimonial-hero-heading {
        top: 20px;
    }
}

 /* Gör projektkorten lika höga */
.blog-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Se till att bilderna har samma höjd och täcker ytan snyggt */
.blog-grid .wt-post-media img {
  width: 100%;
  height: 400px; /* justera vid behov, t.ex. 350px */
  object-fit: cover;
}

/* Innehållet tar upp resten av ytan */
.blog-grid .wt-post-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Gör hela kortet lika högt i carousel */
.owl-carousel .item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Justera knappen så den ligger konsekvent längst ner */
.blog-grid .site-button {
  align-self: flex-start;
  margin-top: auto;
}

.grid-post {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-post li {
  flex: 1 1 calc(50% - 10px); /* två kolumner */
  max-width: calc(50% - 10px);
  overflow: hidden;
}

.grid-post img {
  width: 100%;
  height: 250px; /* justera till 280–350px efter smak */
  object-fit: cover;
  display: block;
  
}

/* Responsiv layout på mobil */
@media (max-width: 768px) {
  .grid-post li {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Nyhetskort – container */
.news-card {
    background: #111;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

/* Bilden överst */
.news-img-wrap {
    display: block;
    width: 100%;
    height: 260px;              /* höjd på bilden – justera vid behov */
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

/* Zooma lite på hover */
.news-card:hover .news-image {
    transform: scale(1.06);
}

/* Svart content-del */
.news-content {
    background: #111;
    color: #fff;
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;          /* ser mer balanserat ut */
    
}

/* Meta-raden: författare + datum */
.news-meta {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 14px;
}

.news-author {
    font-weight: 500;
}

.news-dot {
    margin: 0 6px;
}

/* Titel */
.news-title {
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.news-title a {
    color: #fff;
    text-decoration: none;
}

.news-title a:hover {
    color: #8d8d8d;             /* valfri accentfärg */
}

/* Tunn linje under titeln */
.news-divider {
    height: 1px;
    width: 100%;
    max-width: 220px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 20px;
}

/* Läs detaljer-knapp */
.news-btn {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.02);
    transition: background .3s ease, border-color .3s ease, transform .2s ease;
}

.news-btn:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #111;
    transform: translateY(-2px);
}

/* Gör att korten håller samma höjd i slide */
.owl-carousel .news-card {
    height: 100%;
}

/* Bilden i nedre delen – dold som default (desktop) */
.project-main-img-mobile {
    display: none;
    width: 100%;
    height: auto;
}

/* ENDRA ENBART PÅ MOBIL */
@media (max-width: 767px) {

    /* Ta bort bakgrundsbilden från blocket under bannern på mobil */
    .project-detail-outer {
        background-image: none !important;
        background-color: transparent;
    }

    /* Gör plats för den riktiga bilden i stället */
    .project-detail-pic {
        min-height: auto;
        margin-bottom: 20px;
    }

    /* Visa den riktiga bilden bara på mobil */
    .project-main-img-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
  
  .wt-bnr-inr {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    height: auto !important;
    min-height: auto !important;
    }
}

/* Telefonlänkar – generell stil */
  .team-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-top: 15px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #111;
    background-color: #fff;
    transition: all 0.2s ease;
  }

  .team-phone-link i {
    margin-right: 8px;
    font-size: 14px;
    
  }

  .team-phone-link:hover {
    background-color: #111;
    color: #fff;
    border-color: #111;
    
  }

  /* Anpassning på grå bakgrund i huvudkortet */
  .wt-team-info .team-phone-link {
    margin-top: 18px;
  }

  /* Anpassning i overlay (mörk bakgrund) */
  .overlay-bx .team-phone-link {
    margin-top: 12px;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
  }

  .overlay-bx .team-phone-link:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
  }


