/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

:root {
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 200;
  line-height: 2;
}

section {
  max-width: 100%;
  overflow-x: hidden;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 300;
}

h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 200;
}

.italic {
  font-style: italic;
}

main {
  margin: 0;
  padding: 0;
}

p {
  white-space: normal;
  word-wrap: break-word;
}

p + p {
  margin-top: 1rem;
}

/* Burgermenu */
.menu-wrapper {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  z-index: 999;
}

.burger {
  width: 2rem;
  color: #ddb982;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 1.375rem;
  cursor: pointer;
}

.burger span {
  height: 0.1875rem;
  background: #6f5e3f;
  border-radius: 0.5rem;
  transition: 0.2s ease;
}

.dropdown {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 0.4rem 0;
  border: 0.0625rem solid #ddd;
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.1);
  min-width: 9.375rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.3125rem);
  transition: 0.2s ease;
}

.menu-wrapper:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown a {
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
  background: #fafafa;
}

.dropdown a:hover {
  background: #ddb982;
}

.menu-wrapper:hover .burger span:nth-child(1) {
  transform: translateY(0.1875rem);
}
.menu-wrapper:hover .burger span:nth-child(3) {
  transform: translateY(-0.1875rem);
}

/* Sektion styling */
section {
  height: auto;
  padding: 5rem 1.25rem;
}

@media (min-width: 48rem) {
  section {
    padding: 6.25rem 3.75rem;
  }

  body {
    font-size: 1.125rem;
  }
}

@media (min-width: 64rem) {
  section {
    padding: 7.5rem 5rem;
  }
}

/* Hero sektion */
.toppen {
  background-image: url("img/min-top.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right 20%;
  min-height: 70vh;
  width: 100%;
}

@media (min-width: 48rem) {
  .toppen {
    background-position: 100% center;
  }
}

@media (min-width: 64rem) {
  .toppen {
    background-position: center center;
    height: 100vh;
  }
}

/* Om mig */
.ommig {
  background-color: #3d3d3d;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.ommig-image {
  margin-right: 0;
  max-width: 100%;
}

.about-image {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.text-wrapper {
  margin-right: 0;
  max-width: 100%;
}

.text-wrapper h2 {
  color: #ddb982;
  margin-bottom: 1rem;
}

.text-wrapper p {
  color: #f8f9fa;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .ommig {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    padding: 3rem 2rem;
  }

  .ommig-image {
    flex: 0 0 45%;
    margin-bottom: 0;
  }

  .about-image {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .text-wrapper {
    flex: 1;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
  }

  .about-title {
    margin-bottom: 1rem;
  }
}

@media (min-width: 64rem) {
  .ommig {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    padding: 4rem;
  }

  .ommig-image {
    flex: 0 0 30%;
  }

  .about-image {
    width: 100%;
  }

  .text-wrapper {
    flex: 1;
  }
}

/* Signatur styling */
.signatur {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.signatur img {
  max-width: 200px;
  height: auto;

}

/* Mobil: signatur under tekst */
.signatur-mobile-desktop {
  display: block;
}

.signatur-tablet {
  display: none;
}

/* Tablet: signatur under billede */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .signatur-mobile-desktop {
    display: none;
  }

  .signatur-tablet {
    display: block;
    margin-top: 1.5rem;
  }
}

/* Desktop: signatur under tekst */
@media (min-width: 64rem) {
  .signatur-tablet {
    display: none;
  }

  .signatur-mobile-desktop {
    display: block;
    justify-content: flex-start;
    margin-top: 2rem;
  }
  
  .signatur-mobile-desktop img {
    max-width: 250px;
  }
}

/* Portfolio video */
.portfolio-video {
  position: relative;
  overflow: visible;
  padding: 2rem 1.25rem;
}

.portfolio-underline {
  display: inline-block;
  width: 100%;
  height: 0.125rem;
  background-color: #212529;
  margin-bottom: 0.5rem;
}

.portfolio-content h1 {
  text-align: center;
  font-size: 2rem;
  color: #3d3d3d;
  margin-bottom: 0.5rem;
}

.video-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}

.video-box {
  width: 100%;
}

.video-box video {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-text {
  text-align: center;
  padding: 1rem;
  background-color: #ddc189;
  border-radius: 0.5rem;
}

.video-text h2 {
  color: #3d3d3d;
  margin-bottom: 0.5rem;
}

.video-text p {
  color: #212529;
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 48rem) {
  .portfolio-video {
    padding: 3rem 3.75rem;
  }

  .portfolio-content h1 {
    font-size: 2.5rem;
    padding: 0;
    margin-bottom: 1rem;
  }

  .video-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
  }

  .video-box {
    width: 100%;
    max-width: 400px;
  }

  .video-text {
    max-width: 250px;
    padding: 1rem;
  }

  .video-box:first-child {
    justify-self: end;
  }

  .video-box:last-child {
    justify-self: start;
  }
}

@media (min-width: 64rem) {
  .portfolio-video {
    padding: 4rem 5rem;
  }

  .video-container {
    gap: 2rem;
    padding: 1rem;
  }

  .video-box {
    max-width: 500px;
  }

  .video-text {
    max-width: 300px;
    padding: 1.5rem;
  }
}

/* Portfolio grid */
.portfolio-heading {
  text-align: center;
}

.portfolio-title {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portfolio-grid {
  display: grid;
  align-content: center;
  padding-right: 2rem;
  padding-left: 0;
  gap: 0rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 100%;
  margin: 0 auto;
  grid-template-areas:
    "a b"
    "c d"
    "e f"
    "g h";
}

.tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #212529;
  font-weight: 100 !important;
}

.tile-text h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.5rem;
  word-break: break-word;
}

.tile:nth-child(1) { grid-area: a; }
.tile:nth-child(2) { grid-area: b; }
.tile:nth-child(3) { grid-area: c; }
.tile:nth-child(4) { grid-area: d; }
.tile:nth-child(5) { grid-area: e; }
.tile:nth-child(6) { grid-area: f; }
.tile:nth-child(7) { grid-area: h; }
.tile:nth-child(8) { grid-area: g; }

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    padding: 0 1rem;
    grid-template-areas:
      "a c e g"
      "b d f h";
  }
}

@media (min-width: 64rem) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 18.75rem);
    justify-content: center;
    padding: 0 2rem;
    grid-template-areas:
      "a c e g"
      "b d f h";
  }
  
  .tile {
    aspect-ratio: 4 / 3;
  }
}

/* Værktøjskasse */
.vaerktøjskasse {
  position: relative;
  padding: 2rem;
}

.mobile-only { 
  display: block;
}

.kasse-content {
  width: 100%;
}

.kasse-text {
  margin-right: 2rem;
}

.kasse-img {
  padding-top: 2rem;
}

.kasse-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .kasse-img {
    margin-top: 3rem;
    padding-top: 0;
  }
}

@media (min-width: 64rem) {
  .vaerktøjskasse {
    padding: 4rem;
    margin: 3rem;
    background-image: url("img/program-vandret.png");
    background-repeat: no-repeat;
    background-position: left 10% center;
    background-size: 40%;
  }

  .kasse-content {
    max-width: 600px;
    margin-left: auto;
  }

  .mobile-only {
    display: none;
  }
}

/* CTA knap */
.cta-container-unik {
  width: 100%;
  background: white;
  padding: 3rem 1.25rem;
  text-align: center;
}

.cta-knap-unik {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #ddb982;
  color: #3d3d3d;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  border-radius: 0.25rem;
  font-weight: 400;
  border: 0.125rem solid transparent;
  transition: all 0.3s ease;
}

.cta-knap-unik:hover {
  background: #3d3d3d;
  color: #ddb982;
  border: 0.125rem solid #ddb982;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

@media (min-width: 48rem) {
  .cta-container-unik {
    padding: 4rem 3rem;
  }

  .cta-knap-unik {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
  }
}

@media (min-width: 64rem) {
  .cta-container-unik {
    padding: 5rem 4rem;
  }

  .cta-knap-unik {
    font-size: 1.3rem;
    padding: 1.2rem 3.5rem;
  }
}

/* Kompetencer cards */
.container-cards {
  background-color: #ddb982;
  padding: 2rem 1rem;
  overflow: hidden;
}

.container-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-bottom: 2rem;
  max-width: 100%;
}

.container-foto:last-child {
  margin-bottom: 0;
}

.foto-image {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.foto-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
}

.foto-title {
  width: 100%;
  padding: 0 1rem;
}

.foto-title h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.foto-text {
  width: 100%;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.foto-text p {
  text-align: center;
  margin: 0;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .container-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .container-foto {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    margin-bottom: 0;
    padding: 0;
  }

  .foto-text {
    padding: 0;
    margin-bottom: 2rem;
  }

  .foto-image {
    padding: 0;
    align-self: end;
  }
}

@media (min-width: 64rem) {
  .container-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
  }

  .container-foto {
    max-width: 350px;
    flex: 1 1 350px;
  }

  .foto-image {
    order: 1;
    margin-bottom: 1rem;
    padding: 0;
  }
  
  .foto-title {
    order: 2;
    padding: 0;
  }
  
  .foto-text {
    order: 3;
    padding: 0;
    margin-bottom: 0;
  }
}

/* Kompetencer anden række */
.container-cards-to {
  background-color: #ddb982;
  padding: 2rem 1rem;
  overflow: hidden;
}

.container-foto-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-bottom: 2rem;
  max-width: 100%;
}

.container-foto-to:last-child {
  margin-bottom: 0;
}

.foto-image-to {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.foto-image-to img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
}

.foto-title-to {
  width: 100%;
  padding: 0 1rem;
}

.foto-title-to h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.foto-text-to {
  width: 100%;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.foto-text-to p {
  text-align: center;
  margin: 0;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .container-cards-to {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .container-foto-to {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    margin-bottom: 0;
    padding: 0;
  }

  .foto-text-to {
    padding: 0;
    margin-bottom: 2rem;
  }

  .foto-image-to {
    padding: 0;
    align-self: end;
  }
}

@media (min-width: 64rem) {
  .container-cards-to {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
  }

  .container-foto-to {
    max-width: 350px;
    flex: 1 1 350px;
  }

  .foto-image-to {
    order: 1;
    margin-bottom: 1rem;
    padding: 0;
  }
  
  .foto-title-to {
    order: 2;
    padding: 0;
  }
  
  .foto-text-to {
    order: 3;
    padding: 0;
    margin-bottom: 0;
  }
}

/* Billedegalleri */
.galleri-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.galleri-title {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d3d3d;
}

.galleri-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ddb982 #f8f9fa;
}

.galleri-scroll::-webkit-scrollbar {
  height: 8px;
}

.galleri-scroll::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 10px;
}

.galleri-scroll::-webkit-scrollbar-thumb {
  background: #ddb982;
  border-radius: 10px;
}

.galleri-scroll::-webkit-scrollbar-thumb:hover {
  background: #c9a66f;
}

.galleri-scroll + .galleri-scroll {
  margin-top: 3rem;
}

.galleri-item {
  flex: 0 0 auto;
  width: 280px;
  height: 280px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galleri-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.galleri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 48rem) {
  .galleri-title {
    font-size: 2rem;
  }

  .galleri-item {
    width: 350px;
    height: 350px;
  }

  .galleri-scroll {
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .galleri-scroll + .galleri-scroll {
    margin-top: 4rem;
  }
}

@media (min-width: 64rem) {
  .galleri-title {
    font-size: 2.2rem;
  }

  .galleri-item {
    width: 400px;
    height: 400px;
  }

  .galleri-scroll {
    gap: 2rem;
    padding: 1rem;
  }
}

/* Kontakt */
.kontakt {
  background-color: #ddb982;
  padding-left: 2rem;
  padding-right: 2rem;
}

.kontakt h1 {
  text-align: center;
  color: #3d3d3d;
}

.kontakt p {
  text-align: center;
  color: #3d3d3d;
  font-weight: 300;
}

.kontakt-billede {
  border-radius: 0.5rem;
}

.kontakt-underline {
  display: inline-block;
  width: 100%;
  height: 0.125rem;
  background-color: #212529;
  margin-bottom: 1rem;
}

.container-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  margin: 0 auto;
  max-width: 32.5rem;
}

.container-info h4 {
  font-weight: 400;
  color: #3d3d3d;
}

.container-info p {
  text-align: center;
  color: #f8f9fa;
}

.container-info h2 {
  text-align: center;
}

.boks {
  background-color: #3d3d3d;
  flex: none;
  padding: 0.5rem 1rem;
  border-radius: 1.875rem;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0.25rem;
  box-sizing: border-box;
  margin-top: 0.375rem;
  margin-bottom: 1rem;
  resize: vertical;
}

textarea#message {
  height: 12.5rem;
}

input[type="submit"] {
  background-color: #ddb982;
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

.container {
  border-radius: 1rem;
  background-color: #f8f9fa;
  padding: 2rem;
  max-width: 32.5rem;
  max-height: fit-content;
  margin: 1rem;
}

.kontakt-billede {
  display: none;
}

@media (min-width: 56.25rem) {
  .kontakt-billede {
    display: block;
    align-items: center;
  }

  .desktop-flex {
    display: flex;
    flex-direction: row;
    padding: 2rem 3.5rem 2rem 1rem;
    justify-content: space-around;
  }

  .stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .container-info {
    gap: 0rem;
    padding: 0rem;
    margin: 0rem;
  }

  .container-info h2 {
    display: none;
  }
}

/* Footer */
.site-footer {
  background-color: #ddb982;
}

.footer-img {
  width: 100%;
  height: 13.75rem;
  overflow: hidden;
}

.footer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  display: block;
}