/* ================= VARIABLER & GRUNDINSTÄLLNINGAR ================= */
:root {
  --green-dark: #0e4f3a;
  --green-hover: #093829;
  --bg-light: #f7f9f8;
  --text-dark: #1c1c1c;
  --text-light: #555;
  --white: #ffffff;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
  --radius-std: 12px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ================= ANIMATIONER ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.hero-inner,
.value-card,
.image-block {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ================= TYPOGRAFI ================= */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--green-dark);
}

h1 {
  font-size: 3.8rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

p {
  margin-bottom: 24px;
  color: var(--text-light);
}

.lead {
  font-size: 1.35rem;
  color: var(--text-dark);
  font-weight: 500;
  max-width: 800px;
  line-height: 1.5;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* ================= LAYOUT & CONTAINERS ================= */
.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 32px;
}

.container.narrow {
  max-width: 900px;
}

.section {
  padding: 120px 0;
}

.section.light {
  background: var(--bg-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ================= HEADER ================= */
/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 180px;
  /* Ökat rejält för att rymma loggan */
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  /* Mjuk animering */
}

.nav {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Loggan */
.logo-horizontal {
  height: 250px;
  /* Mycket större nu! */
  width: auto;
  object-fit: contain;
  display: block;
  margin-right: 20px;
  transition: all 0.3s ease;
  /* NY RAD HÄR FÖR ATT JUSTERA HÖJDEN: */
  margin-top: -30px;
  /* Minus flyttar den UPPÅT. Ändra till t.ex. 10px för att flytta NERÅT. */

}

/* MOBILANPASSNING (Viktigt!) */
@media (max-width: 900px) {
  .header {
    height: 100px;
  }

  .logo-horizontal {
    height: 80px;
  }

  /* Lagom på mobil */
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--green-dark);
  text-decoration: none;
}

/* DROPDOWN MENY */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--white);
  border-radius: var(--radius-std);
  min-width: 220px;
  padding: 16px 0;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 12px 24px;
  color: var(--text-dark);
}

.dropdown a:hover {
  background: var(--bg-light);
}

/* ================= KNAPPAR ================= */
.btn,
.btn-primary {
  display: inline-block;
  background-color: var(--green-dark);
  color: white !important;
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(14, 79, 58, 0.25);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
}

.btn:hover,
.btn-primary:hover {
  background-color: var(--green-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(14, 79, 58, 0.35);
}

.btn:active {
  transform: translateY(-1px);
}

/* ================= BILDER & BLOCKS ================= */
.image-block,
.location-image,
.portrait-block {
  width: 100%;
  height: 550px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-std);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s ease;
}

.image-block:hover {
  transform: scale(1.01);
}

/* --- PROFILBILDERNA (OM OSS) --- */
.portrait-block {
  height: 350px;
  /* Mycket mindre höjd enligt önskemål */
  width: 100%;
  max-width: 350px;
  /* Kvadratisk eller nästan kvadratisk */

  /* DETTA FIXAR HUVUDENA: */
  background-position: top center;
  /* Tvingar bilden att visa toppen (huvudet) först */
  background-size: cover;
}

/* ================= PLANRITNINGAR (PLAN 4 & 5) ================= */
.plan-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  background: white;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.plan-wrapper:hover {
  transform: translateY(-5px);
}

.plan-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 12px;
  font-weight: 500;
}

/* Modal för ritningar */
.plan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.plan-modal.active {
  opacity: 1;
  pointer-events: all;
}

.plan-modal img {
  max-width: 90vw;
  max-height: 90vh;
  transition: transform 0.1s ease-out;
  cursor: grab;
}

.modal-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  pointer-events: none;
}

/* ================= HERO (STARTSIDA) ================= */
.hero,
.video-hero {
  position: relative;
  overflow: hidden;
  height: 85vh;
  min-height: 650px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 79, 58, 0.3), rgba(14, 79, 58, 0.7));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;

  /* TVINGANDE CENTRERING */
  margin-left: auto !important;
  margin-right: auto !important;
  left: 0;
  right: 0;

  padding: 0 24px;

  /* Flexbox-magi */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-inner h1 {
  color: white;
  margin-bottom: 24px;
  font-size: 5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-inner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.6rem;
  margin-bottom: 40px;
  max-width: 700px;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: var(--green-dark);
  color: #ffffff;
  padding: 100px 0 60px;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.site-footer h3,
.site-footer p,
.site-footer a {
  color: #ffffff !important;
}

.site-footer h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 12px;
  display: inline-block;
  opacity: 1;
}

.footer-links a {
  display: block;
  opacity: 0.8;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
  transform: translateX(6px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ================= HAMBURGERMENY ================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animering när menyn är öppen */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= RESPONSIVITET ================= */
@media (max-width: 900px) {

  /* Typografi */
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .hero-inner h1 {
    font-size: 2.5rem;
  }

  .hero-inner p {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero,
  .video-hero {
    height: 70vh;
    min-height: 500px;
  }

  /* Header */
  .header {
    height: 120px;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
  }

  /* Lägg till utrymme för fixed header */
  body {
    padding-top: 120px;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    padding: 0 20px;
    position: relative;
  }

  .logo-horizontal {
    height: 100px;
    width: auto;
    margin-top: 0;
    margin-right: 0;
  }

  /* Visa hamburgermeny */
  .hamburger {
    display: flex;
  }

  /* Dölj navigation som standard på mobil */
  .main-nav {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  /* Visa navigation när aktiv */
  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Dropdown på mobil */
  .nav-item {
    width: 100%;
  }

  .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    min-width: 100%;
    background: var(--bg-light);
    border-radius: 0;
  }

  .has-dropdown:hover .dropdown {
    transform: none;
  }

  .dropdown a {
    padding: 14px 40px;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .footer-grid,
  .values {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  /* Bilder */
  .image-block,
  .location-image {
    height: 280px;
  }

  /* Profilbilder */
  .portrait-block {
    height: 300px;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Knappar i hero */
  .hero-inner .btn,
  .hero-inner .btn-primary {
    display: block;
    width: 100%;
    margin: 8px 0 !important;
    text-align: center;
  }

  /* Kartor/iframes */
  .location-map iframe {
    width: 100% !important;
    height: 300px !important;
  }

  /* Plan modal */
  .plan-modal img {
    max-width: 100%;
    height: auto;
  }

  /* Formulär */
  .contact-form-card {
    padding: 24px;
  }

  /* Footer */
  .site-footer {
    padding: 60px 0 40px;
  }

  .footer-grid {
    gap: 40px;
    margin-bottom: 40px;
  }
}

/* Extra små skärmar */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero-inner h1 {
    font-size: 2rem;
  }

  .hero-inner p {
    font-size: 1rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn,
  .btn-primary {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .image-block,
  .location-image {
    height: 220px;
  }

  .portrait-block {
    height: 250px;
    max-width: 250px;
  }
}

/* Bounce animation */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* ================= MOBIL STICKY BAR ================= */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 99998;
  padding: 12px;
  gap: 12px;
}

.sticky-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
}

.phone-btn {
  background: var(--green-dark);
  color: white !important;
}

.mail-btn {
  background: #f0f0f0;
  color: var(--text-dark) !important;
}

@media (max-width: 600px) {
  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 140px;
  }

  /* Utrymme för både header och sticky bar */
  #cookie-banner {
    bottom: 80px !important;
  }
}

/* ================= GRID-3 FÖR VALUE CARDS ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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