/* =========================
   Reset
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
}

/* =========================
   Container
   ========================= */
.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

/* =========================
   Header
   ========================= */
.site-header {
  padding: 22px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Logo */
.logo img {
  height: 110px;
  display: block;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 8px;
}

.nav a.active {
  color: #c63a3a;
}

.nav a:hover {
  color: #c63a3a;
}

/* Socials */
.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: #c63a3a;
  transition: 0.2s ease;
}

.socials a:hover svg {
  opacity: 0.7;
}

/* =========================
   Main
   ========================= */
.main {
  flex: 1;
}
.kontakt-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Intro – startsida
   ========================= */
.intro-top {
  padding: 18px 0 36px;
  text-align: center;
}

.intro-top h2 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 14px;
}

.intro-top p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}

/* =========================
   Hero – startsida
   ========================= */
.hero {
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 60px;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  justify-self: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.hero-text {
  text-align: center;
  max-width: 340px;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.4;
}

/* =========================
   Behandlingar-sida
   ========================= */
.behandlingar-section {
  padding: 120px 0 140px;
  text-align: center;
}

.behandlingar-section h1 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 80px;
}

/* 🔥 FIXAD GRID (perfekt centrering) */
.behandlingar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 60px;
  max-width: 900px;
  margin: 0 auto 90px;
}

/* centrera innehåll i varje ruta */
.behandlingar-grid div {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* centrera sista raden */
.behandlingar-grid div:last-child {
  grid-column: 2;
}

/* =========================
   Boka-knapp
   ========================= */
.boka-wrapper {
  margin-top: 20px;
  text-align: center;
}

.boka-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #c63a3a;
  color: #c63a3a;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.boka-btn:hover {
  background: #c63a3a;
  color: #fff;
}

/* =========================
   Footer banner
   ========================= */
.footer-banner {
  background: #c63a3a;
  color: #fff;
  text-align: center;
  padding: 16px 10px;
  font-size: 14px;
}

/* =========================
   Om oss
   ========================= */
.om-section {
  padding: 60px 0 140px; /* 🔥 mer luft upp (pga sticky header) */
  text-align: center;
}

.om-section h1{
font-size:36px;
font-weight:300;
margin-bottom:30px;
}

.om-section h2{
font-size:22px;
font-weight:300;
margin-top:30px;
margin-bottom:10px;
}

.om-section p{
font-size:15px;
line-height:1.7;
margin-bottom:12px;
}

.om-section ul{
list-style:none;
padding-left:0;
margin:10px 0 20px;
}

/* 🔥 viktigt: lås bredd som hero */
.om-image {
  max-width: 420px;
  margin: 0 auto 40px;
}

.om-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

/* 🔥 matchar startsidan */
.om-text {
  max-width: 340px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
}

.om-text p {
  margin-bottom: 20px;
}

/* =========================
   Kontakt-sida
   ========================= */
.kontakt-section {
  width: 100%;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* vänster sida */
.kontakt-info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kontakt-info h1 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 30px;
}

.kontakt-info p {
  margin-bottom: 12px;
  font-size: 15px;
}

.kontakt-info a {
  color: #c63a3a;
  text-decoration: none;
}

.oppettider {
  margin-top: 20px;
}

.kontakt-socials {
  margin-top: 30px;
  display: flex;
  gap: 16px;
}

.kontakt-socials a {
  color: #c63a3a;
  font-weight: 600;
}

.kontakt-socials svg {
  width: 22px;
  height: 22px;
  fill: #c63a3a;
  transition: 0.2s ease;
}

.kontakt-socials a:hover svg {
  opacity: 0.7;
  transform: scale(1.1);
}

/* karta */
.kontakt-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* mobil */
@media (max-width: 1000px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .kontakt-info {
    padding: 40px 20px;
    text-align: center;
  }

  .kontakt-map {
    height: 400px;
  }
}

/* =========================
   My work
   ========================= */
.mywork-section {
  padding: 120px 0 140px;
  text-align: center;
  min-height: 60vh;
}

/* GRID */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

/* VIDEO */
.insta-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: grayscale(100%);
  cursor: pointer;
  transition: 0.3s ease;
}

/* HOVER = färg */
.insta-grid video:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.mywork-section::after{
content:"";
display:block;
height:120px;
background:linear-gradient(to bottom, transparent, #fff);
margin-top:-120px;
}

/* =========================
   Mobile media
   ========================= */
@media (max-width: 1200px) {

  .insta-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

  .insta-grid video {
  transition: transform 0.25s ease;
}

.insta-grid video:active {
  transform: scale(0.95);
}

  .nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    max-width: 320px;
  }

  .hero-text h1,
  .intro-top h2 {
    font-size: 30px;
  }

  .behandlingar-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    font-size: 16px;
  }

  .behandlingar-section h1 {
    margin-bottom: 50px;
  }

  .video-modal-content {
    display: flex;
    flex-direction: column;   /* staplar */
    align-items: center;
    gap: 20px;
  }

  .video-modal video {
    width: 100%;
    max-width: 320px;
  }

  .video-modal p {
    width: 100%;
    text-align: left;
  }

}

/* =========================
   Video Modal Overlay
   ========================= */

.video-modal {
  position: fixed;
  inset: 0;
  display: none;

  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);

  z-index: 9999;

  overflow-y: auto;     /* 🔥 gör modalen scrollbar */
  padding: 40px 20px;   /* luft så text inte klipps */
}

.video-modal-content {
  display: grid;
  grid-template-columns: 320px 1fr;  /* video vänster */
  gap: 40px;
  align-items: start;

  background: transparent;   /* 🔥 ändra från white */
  padding: 0;                /* 🔥 ta bort padding */

  max-width: 1000px;
  width: 90%;
}

.video-modal video {
  width: 320px;
  aspect-ratio: 9 / 16;
}

.video-modal p {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  text-align: left;
}

/* Blur bakgrunden när modal är öppen */
body.modal-open .site-header,
body.modal-open .insta-grid {
  filter: blur(8px);
}

/* =========================
   Mobil Header Compact
   ========================= */

@media (max-width: 768px) {

  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .logo img {
    height: 48px;
  }

  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .nav a {
    font-size: 14px;
    padding-bottom: 2px;
  }

  .socials {
    gap: 12px;
  }

  .socials svg {
    width: 16px;
    height: 16px;
  }

}

/* =========================
   Video modal mobil fix
   ========================= */

@media (max-width: 1000px) {

  .video-modal-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
  }

  .video-modal video {
    width: 100%;
    max-width: 320px;
  }

  .video-modal p {
    width: 100%;
    text-align: left;
  }

}

/* =========================
   Mobil – visa filmer i färg
   ========================= */

@media (max-width: 1000px) {

  .insta-grid video {
    filter: none !important;
  }

/* =========================
   Lås bakgrund när video är öppen
   ========================= */

body.modal-open {
  overflow: hidden;
  height: 100%;
  }

}

/* =========================
   Cookie banner
   ========================= */

#cookie-banner{
position:fixed;
bottom:20px;
left:50%;
transform:translateX(-50%);
width:90%;
max-width:700px;
background:#fff;
box-shadow:0 10px 40px rgba(0,0,0,0.15);
border-radius:14px;
padding:14px 20px;
z-index:9999;
}

.cookie-content{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
font-size:14px;
}

.cookie-content a{
color:#c63a3a;
text-decoration:none;
}

.cookie-content button{
background:#c63a3a;
color:#fff;
border:none;
padding:8px 18px;
border-radius:20px;
cursor:pointer;
font-size:13px;
}

.cookie-content button:hover{
opacity:0.9;
}
