/* Allmänt */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lora', serif;
  overflow-x: hidden;
}

.page-index p {
  color: #f0e3c4;
  line-height: 1.8;
  font-family: 'Lora', serif;
}

/* Wrapper för hela hemsidan */
.main-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 140px;
}

/* Header Wrapper (overlay ovanpå hero) */
.header-wrapper{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 999;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  
  background-image: url("Bilder/header-oak-charcoal-safe.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid #f0e3c4;
}

.header-wrapper::before{
  content:"";
  position:absolute;
  inset:0;
  
  
/*
background: linear-gradient(
  to bottom,
  rgba(20,20,20,.92) 0%,
  rgba(30,30,30,.85) 25%,
  rgba(40,40,40,.75) 50%,
  rgba(30,30,30,.85) 75%,
  rgba(20,20,20,.92) 100%
); */

/*
  background: linear-gradient(
  to bottom,
  rgba(20,20,20,.92) 0%,
  rgba(30,30,30,.85) 25%,
  rgba(40,40,40,.75) 70%,
  rgba(60,60,60,.0) 100%
); */
  pointer-events:none;
}

/* Overlay */
.overlay{
  position: relative;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Telefonfält */
.phone-bar {
  flex-direction: row;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: transparent;
}

.phone-bar a {
  color: #B6A15F;
  font-weight: 200;
  font-size: 20px;
  text-decoration: none;
}

/* Main Header */
.main-header {
  flex: 1;              /* fill space below phone-bar to bottom of header */
  width: 100%;
  display: flex;
  flex-direction: row;
  /*
  border-top: 2px solid #B6A15F;
  border-bottom: 2px solid #B6A15F;
  */
  background-color: transparent;
}

.header-logo {
    height: 70px;
    flex-grow: 1;
    padding-top: 25px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.meny {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.meny img,
.meny .menu-icon {
  width: 66px;
  height: 66px;
}

/* Sektion 1 (Hero fyller första vyn) */
.sektion-1{
  width: 100%;
  min-height: calc(100svh - 181px);
  background-color: #1A1A1A;
  padding-top: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* (ÄNDRING) Ingen hel-overlay */
.sektion-1::before{
  display: none;
}

.sektion-1 picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  z-index: 0;
  pointer-events: none;
  max-width:none;
}

.sektion-1-inner {
  background: transparent;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;

  /* (ÄNDRING) lite luft så "plattan" inte känns som en bar */
  padding: 8px 5px 14px 5px;
}


/* Ersätt hela ::before-blocket */
.sektion-1-inner::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(94%, 720px);
  height: calc(100% - 16px);

  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.60) 55%,
    rgba(0,0,0,0.60) 100%
  );

  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
}


/* Textbox i sektion 1 */
.text-box {
  padding: 4px 10px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-box h1 {
  color: #E2C879;
  font-weight: 200;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.75);
}

/* Mellanlinje mellan textboxar */
.mellanlinje {
  height: 1px;
  width: 33%;
  background-color: #B6A15F;
  margin: 5px auto;
}

/* Textbox 2 */
.text-box-2 {
  padding: 0 10px 5px 10px;
  display: flex;
  justify-content: center;
}

.text-box-2 p {
  color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* Stad-animation */
.stad-animation {
  display: inline-block;
  color: #B6A15F;
  font-size: 16px;
  font-family: 'Lora', serif;
}

/* CTA Offert Wrapper (ligger naturligt längst ner i hero) */
.cta-offert-wrapper{
  display: flex;
  flex-direction: row;
  background-color: transparent;
  align-items: center;
  justify-content: center;

  position: absolute;   /* NYTT */
  left: 0;              /* NYTT */
  right: 0;             /* NYTT */
  bottom: -22px;         /* NYTT: ligger precis över skarven */
  z-index: 10;

  padding: 0;           /* NYTT */
  height: 44px;         /* NYTT: ren “skarv-list” */
}

.cta-inner-line {
  height: 1px;
  width: 100%;
  background-color: #B6A15F;
}

.cta-inner-button-wrapper {
  display: flex;
  flex-direction: row;
  width: 300px;
  justify-content: center;
  align-items: center;
  background: none;
}

.cta-knapp-offert {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #B6A15F;
  background-color: #1A1A1A;
  color: #B6A15F;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  height: 42px;
  width: 160px;
}

/* Sektion 2 */
.sektion-2 {
  min-height: 1130px;
  padding: 130px 25px 10px 25px;
  background:
  rgba(0, 0, 0, 0.8) url('Bilder/VitSilkes.webp');
background-size: cover;
background-position: center;
background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stark {
  font-weight: 700;
  color: #e6d7b0;
  text-decoration: underline;
  text-decoration-color: rgba(230, 215, 176, 0.35);
  text-underline-offset: 4px;
}

/* Rubrik i sektion 2 */
.rubrik-sektion-2 {
  font-size: 18px;
  color: #B6A15F;
  letter-spacing: 6px;
  text-align: left;
  margin-bottom: 10px;
}

/* Underrubrik i sektion 2 */
.underrubrik-sektion-2 {
  font-size: 26px;
  font-weight: bold;
  color: white;
  margin: 25px 0 25px 0;
}

/* Textbox 3 i sektion 2 */
.text-box-3 {
  padding: 15px 10px 0 0;
  max-width: 800px;
}

.text-box-3 p {
  color: #f0e3c4;
  font-size: 16px;
  line-height: 1.8;
}

/* Knapp "Mer om oss" */
.cta-knapp-omoss {
  margin-top: 25px;
  padding: 8px 16px;
  background-color: #8FAE85;
  color: #1A1A1A;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  width: 150px;
}

.logo-box {
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 300px;
}

/* =========================
   Responsive: surfplatta & desktop
   Mobil är baseline (default)
   ========================= */

@media (min-width: 768px) {
  .phone-bar a { font-size: 22px; }
  .text-box h1 { font-size: 28px; }
  .text-box-2 p {font-size: 18px;}
  .stad-animation { font-size: 18px; }
  
  .cta-knapp-offert { font-size: 18px; width: 190px; }
  
  .sektion-2 { padding: 110px 60px 30px 60px; }
  .rubrik-sektion-2 { font-size: 20px; }
  .underrubrik-sektion-2 { font-size: 34px; }
  .text-box-3 p { font-size: 18px; }
  .logo-box { height: 340px; }

  /* (ÄNDRING) skala plattan snyggt */
  .sektion-1-inner { padding: 10px 18px 17px 18px; }
  .sektion-1-inner::before { height: 230px; border-radius: 20px; }
}

@media (min-width: 1024px) {
  .phone-bar a { font-size: 24px; }
  
  .text-box {padding-top: 20px;}
  .text-box h1 { font-size: 32px; }
  .text-box-2 {padding-bottom: 20px;}
  .text-box-2 p {font-size: 20px;}
  .stad-animation { font-size: 20px; }
  
  .sektion-2 { padding: 130px 90px 40px 90px; }
  .rubrik-sektion-2 { font-size: 22px; }
  .underrubrik-sektion-2 { font-size: 38px; max-width: 1100px; }
  .text-box-3 { max-width: 1100px; }

  /* (ÄNDRING) skala plattan snyggt */
  .sektion-1-inner { padding: 12px 22px 20px 22px; }
  .sektion-1-inner::before { height: 250px; border-radius: 22px; }
}

/* =========================
   DESKTOP-HEADER (matchar index): logo centrerad, telefon uppe till höger,
   meny som egen centrerad rad under. Identiskt med index.html:s inline-block.
   ========================= */
@media (min-width: 801px) {
  .header-wrapper{
    height: 188px;
    background-color: rgba(0,0,0,.78);
    background-image: none;
    border-bottom: 1px solid rgba(240,227,196,.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-wrapper{ margin-top: 188px; }   /* matchar den högre headern (var 140px) */
  .phone-bar{
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    padding: 20px 34px;
    justify-content: flex-end;
    gap: 28px;
  }
  .main-header{ flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
  .header-logo{ flex-grow: 0; padding: 0; }
}