body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #eae8e6;
  color: #2c2c2c;
}

header{
  padding: 20px 40px;
  background-color: #ddd9d4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

footer {
  text-align: center;
  padding: 20px 40px;
  background-color: #ddd9d4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  padding-bottom: 45px; /* adjust if cookie bar is taller */
}

.logo-header {
  text-align: left;
  font-family: 'Georgia', serif;
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.2;
  color: #2c2c2c;
  margin-top: 7px;
  text-decoration: none;
  display: inline-block;
}

.logo-header span {
  display: block;
  font-size: 2.17rem;
}

nav {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
}

nav a, .dropbtn {
  margin: 0 15px;
  text-decoration: none;
  color: #2c2c2c;
  font-weight: bold;
  font-family: 'Helvetica Neue', sans-serif;
  transition: color 0.3s ease;
}

nav a:hover, .dropbtn:hover {
  color: #8a6f4d;
}

nav span {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown styles */
.dropdown { position: relative; display: inline-block; }
.dropbtn { cursor: pointer; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ddd9d4;
  min-width: 190px;
  border-radius: 4px;
  box-shadow: 10px 10px 32px rgba(0,0,0,0.10);
  z-index: 999;
  padding: 5px 0;
  left: 0;
}

.dropdown-content a {
  color: #000;
  padding: 8px 8px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', sans-serif;
  transition: background-color 0.3s ease;
  width: 100%;
}

.dropdown-content a:hover {
  color: #8a6f4d;
  background-color: transparent;
  width: 100%;
}
.dropdown:hover .dropdown-content { display: block; }
/* --- Main Service Buttons Grid --- */
.services-center {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0 45px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  justify-items: center;
  max-width: 950px;
  width: 100%;
}

.service-card {
  background: #f8f7f6;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 190px;
  max-width: 250px;
  aspect-ratio: 1/1;
  padding: 10px 10px;
  text-align: center;
  color: #222;
  font-size: 1.19rem;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  gap: 10px;
}

.service-card img {
  max-width: 58px;
  max-height: 58px;
  margin: 0 auto 5px auto;
  display: block;
  margin-bottom: 12px;
}

.service-card span {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.3px;
  line-height: 1.22;
  word-break: break-word;
  text-align: center;
}

.light-text {
  font-size: 0.72em;
  color: #9e9689;
  font-weight: normal;
  margin-top: 4px;
}

.service-card span.light-text {
  font-weight: normal !important;
  font-size: 0.75em !important;
  color: #a08e76 !important;
  display: block;
  margin-top: 3px;
}

.service-card:hover {
  box-shadow: 0 7px 28px rgba(0,0,0,0.14);
  transform: scale(1.03);
  background: #edeae6;
}

.map-mini-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}

.mini-map {
  width: 850px;         /* Controls preview size */
  max-width: 92vw;
  aspect-ratio: 2.4/1;  /* Proportionally, matches your full map */
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 11px;
  cursor: pointer;
  object-fit: cover;
  transition: box-shadow 0.15s, transform 0.12s;
}

.mini-map:hover {
  box-shadow: 0 5px 24px rgba(0,0,0,0.18);
  transform: scale(1.03);
}

.map-preview-relative {
  position: relative;
  display: inline-block;
}

.full-map-img {
  width: 100%;
  height: auto;
  max-width: 1300px;
  display: block;
  border-radius: 12px;
  margin: 0 auto;
}

.map-header {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: left;
  margin-bottom: 10px;
  margin-left: 8px; /* adjust as needed */
  color: #2c2c2c;
}

.map-preview-label {
  position: absolute;
  top: 14px;
  left: 18px;
  background: rgba(255,255,255,0.82);
  color: #2c2c2c;
  font-size: 1.14rem;
  font-weight: 600;
  padding: 6px 18px 5px 16px;
  border-radius: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 1px 5px rgba(0,0,0,0.07);
  pointer-events: none; /* Doesn't block click */
  z-index: 2;
}

.hero-text {
  padding: 20px 30px 20px 30px;
  margin: 0 -65px 60px -65px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
background-color: #FFFFFF;
}

.hero-text h1 {
  font-size: clamp(1.2rem, 1.8vw, 2.2rem);
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  text-align: left;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  line-height: 1.6;
  text-align: left;
}

.hero-image {
  width: 100%;
  max-width: 100%;
}

.project {
  margin-bottom: 50px;
}

.project h2 {
  font-size: clamp(1.2rem, 1.4vw, 1.7rem);
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #2c2c2c;
  font-family: 'Georgia', serif;
}

.project-thumb {
  width: auto;
  height: 135px;
  object-fit: cover;
  margin: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-thumb:hover {
  transform: scale(1.05);
}

.project p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  line-height: 1.5; 
}

.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  margin: 60px auto;
  padding: 16px 12px 8px 12px;
  border-radius: 14px;
  max-width: 1300px;
  width: 97vw;
  box-shadow: 0 10px 38px rgba(0,0,0,0.20);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 14px; right: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  user-select: none;
}


.main-content,
main {

  margin: 0 auto;
  padding: 36px 220px 0 220px;
  box-sizing: border-box;
  padding-bottom: 50px; /* adjust as needed, should be >= button height + gap */
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30, 30, 30, 0.92);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  box-shadow: 0 6px 32px rgba(0,0,0,0.28);
  border-radius: 6px;
  border: 3px solid #eee;
  background: #fff;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.38);
  padding: 6px 12px;
  background: rgba(20,20,20,0.1);
  border-radius: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-caption {
  color: #fff;
  font-size: 1.05rem;
  margin: 22px auto 0 auto;
  max-width: 90vw;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.50);
  font-family: 'Georgia', serif;
  padding: 2px 12px;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.floating-cta {
  display: block;   /* Always visible unless explicitly hidden */
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #2c2c2c;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

.my-bullet:before {
  content: " • ";
  color: #000;
}

.blog-index-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s, box-shadow 0.16s;
  margin-bottom: 38px;
}

.blog-index-card .hero-text {
  cursor: pointer;
}

.blog-index-card:hover .hero-text {
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
  transform: scale(1.01);
  background: #f7f7f7;
}

.go-back-btn {
  display: inline-block;
  margin: 22px 0 10px 0;
  padding: 9px 28px;
  font-size: 1.05rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg,#ddd9d4 0%,#baa995 100%);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(44,97,154,0.09);
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}

.go-back-btn:hover,
.go-back-btn:focus {
  background: linear-gradient(90deg,#ddd9d4 0%,#baa995 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(44,97,154,0.14);
  outline: none;
}

.social-links a {
  color: #2c2c2c;
  font-size: 1.6rem;
  margin: 0 10px;
  margin-bottom: 30px;
  text-decoration: none;
  transition: color 0.2s;
}
.social-links.center {
  text-align: center;
}

.social-links.left {
  text-align: left;
}
/* Narrow fields for name & email */
.narrow-field {
  width: 40%;
  max-width: 300px;
}

/* Bigger text area for "Beskriv projektet" */
textarea[name$="-text"] {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

/* Make dropdowns stack vertically */
.dropdown-level {
  margin-top: 10px;
  display: block;
}
.dropdown-level select {
  display: block;
  margin-top: 5px;
}
/* Stack name and email vertically with smaller width */
#quote-form input[type="text"],
#quote-form input[type="email"] {
  width: 40%;
  max-width: 320px;
  display: block;
  margin-bottom: 10px;
}


/* Bigger gap between dropdowns and the generated frame */
#dynamic-fields fieldset {
  margin-top: 35px;   /* was 20px */
  padding: 18px;
  border: 1px solid #aaa;
}

/* Ensure textarea and file upload are well spaced */
#dynamic-fields textarea {
  margin-bottom: 18px;
}

#dynamic-fields input[type="file"] {
  margin-top: 10px;
  margin-bottom: 18px;
}

textarea {
  width: 60%;
  min-height: 10 0px;
  resize: vertical; /* allows user to adjust only height */
}

.file-note {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
}

.file-list {
  list-style: none;
  padding-left: 0;
  margin-top: 6px;
}

.file-list li {
  margin: 2px 0;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
}
.numeric-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.numeric-fields label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

/* Cookie Banner */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f0f0f0;
  color: #333;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  z-index: 800;
}

#cookie-banner button {
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}

#cookie-banner button:hover {
  background: #e0e0e0;
}










/* Responsive for tablets/small screens */
@media (max-width: 1050px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 480px;
    gap: 22px;
  }

nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 3px 0;
    gap: 0;
  }

  nav > a,
  nav > .dropdown {
    margin: 2px 0;
    width: 100%;
    padding: 8px 2px 1px 14px;
    font-size: 1.08rem;
    box-sizing: border-box;
  }

  nav span {
    margin: 12px 0 0 0;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
    display: flex;
  }

  .dropdown-content {
    left: 50px;
    right: auto;
  }

  .hero-text {
    padding: 20px 12px 12px 12px;
    margin: 0 auto 32px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

.main-content,
main {

  margin: 0 auto;
  padding: 36px 20px 0 20px;
  box-sizing: border-box;
  padding-bottom: 50px; /* adjust as needed, should be >= button height + gap */
}
  .project-thumb {
    height: 80px;
    margin: 5px;
  }
  .project h2 {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

.project {
    max-width: 97vw;  /* Keep it nearly full width, but not touching edges */
    margin: 0 auto 28px auto;
    padding: 0 4vw;   /* Some side padding for nice spacing */
  }
  .project h2 {
    font-size: 1.08rem;   /* Smaller heading on mobile */
    line-height: 1.25;
    word-break: break-word;  /* Prevents overflow if title is long */
    max-width: 100%;      /* Prevents the heading from overflowing */
    margin: 0 0 8px 0;
  }
  .project p {
    font-size: 0.99rem;
    line-height: 1.45;
  }
}

.lightbox-caption-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 24px 10px 24px;
  box-sizing: border-box;
  text-align: left;
  font-weight: bold;
  font-size: 1.15rem;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  z-index: 2;
  pointer-events: none;
}
.lightbox-caption-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px 24px 10px 24px;
  box-sizing: border-box;
  text-align: left;
  font-size: 1.07rem;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  z-index: 2;
  pointer-events: none;
}
.lightbox-image-container {
  position: relative;
  display: inline-block;
}

.lightbox-caption-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 10px 24px 10px 24px;
  box-sizing: border-box;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  z-index: 2;
  pointer-events: none;
}
.lightbox-media {
  position: relative;
  display: inline-block;
}

ul, li {
  font-family: 'Georgia', serif !important;
  font-size: 1rem;
  color: #2c2c2c;
  line-height: 1.5;
}

.blog-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Mobile: stack and square, fixed size for each */
@media (max-width: 650px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    gap: 17px;
  }

  .service-card {
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 210px;
    min-width: 145px;
    height: auto;
    padding: 5px 5px;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .service-card img {
    max-width: 50px;
    max-height: 50px;
  }

  main, .main-content {
    max-width: 100vw;
    padding: 10px 16px 0 16px;
    margin: 5px;
    box-sizing: border-box;
  }

.project {
  margin-bottom: 65px;
}

/* Map Button and Modal */
.map-preview-relative {
  position: relative;
  display: inline-block;
}

.map-preview-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0 24px 0;
}

.open-map-btn {
  background: #2c2c2c;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1.1rem;
  padding: 13px 36px;
  cursor: pointer;
  transition: background 0.2s;
}

.open-map-btn:hover {
  background: #8a6f4d;
}



/* Review Section */
.full-width-section {
  max-width: 900px;                /* Card width */
  margin: 40px auto 32px auto;        /* Centered and with space above */
  background: #f8f7f6;
  padding: 30px 24px 24px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.full-width-section h2 {
  margin-top: 0;
  font-size: 1.28rem;
  color: #2c2c2c;
}

.review-link {
  cursor: pointer;
  color: #8a6f4d;
  text-decoration: underline;
  margin-top: 20px;
}

.review-preview {
  margin-bottom: 20px;
}

.review-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.review-modal-content {
  background: #fff;
  padding: 30px;
  max-width: 700px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
}

.review-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #333;
}
.review-modal-content blockquote {
  font-size: 1.09rem;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-left: 4px solid #8a6f4d;
  background-color: #f9f9f9;
  font-style: italic;
}

/* Floating Button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #2c2c2c;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

.floating-cta:hover {
  background-color: #8a6f4d;
}

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 3px 0;
    gap: 0;
  }

  nav > a,
  nav > .dropdown {
    margin: 2px 0;
    width: 100%;
    padding: 8px 2px 1px 14px;
    font-size: 1.08rem;
    box-sizing: border-box;
  }

  nav span {
    margin: 12px 0 0 0;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
    display: flex;
  }

  .dropdown-content {
    left: 50px;
    right: auto;
  }

  .lightbox-content { max-width: 98vw; max-height: 68vh; }
  .lightbox-close { top: 10px; right: 12px; font-size: 2.2rem; }

}
  .lightbox-arrow { font-size: 2rem; padding: 2px 6px; }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
}
