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

html {
  font-size: 62.5%;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Comfortaa", sans-serif;
  color: #444;
  background-color: #e7e5e4;
  height: 100vh;
  overflow-x: hidden;
}
.gallery,
.contact-section,
.form,
.header {
  min-width: 0;
}

.gallery > *,
.contact-section > *,
.form > * {
  min-width: 0;
}

.hero-section,
.hero-image,
.hero-text-container {
  overflow-x: clip; /* modernare än hidden för just X-överskjut */
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-items: center;
  height: 100%;
  margin-bottom: 8rem;
  position: relative;
}

.header {
  width: 90%;
  padding: 2rem;
  font-family: "Meddon";
  font-size: 4rem;
  color: #f5f5f5;
  position: absolute;
  top: 5%;
  left: 5%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-block;
  text-decoration: none;
  font-size: 4rem;
  color: #f5f5f5;
}

.main-nav {
  font-family: "Comfortaa";
  font-weight: 700;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-size: 3rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #1c1917;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #1c1917;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #1c1917;
}

.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #fff;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

.hero-image {
  background-image: url("/images/background1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  -webkit-filter: blur(3.5px);
  z-index: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-text-container {
  background-color: rgba(28, 25, 23, 0.75);
  padding: 6.4rem;
  max-width: 50%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 2px;
  text-align: center;
}

.hero-text {
  font-size: 3rem;
  color: oklch(97% 0.001 106.424);
}

.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 8rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: 4rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  filter: saturate(50%);
  display: block;
  width: 100%;
  transition: all 0.4s;
}

.gallery-item img:hover {
  transform: scale(1.4);
}

.contact-section {
  background-color: oklch(70.9% 0.01 56.259);
  padding: 6.4rem 8rem 6.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6.4rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 8rem;
  border-radius: 2px;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.form-header {
  font-size: 4rem;
}

.form-text {
  font-size: 2rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.2rem;
  row-gap: 2.4rem;
}

.form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.form input {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #f5f5f4;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form input::placeholder {
  color: #aaa;
}

.form-btn,
.form-btn:link,
.form-btn:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  align-self: end;
  padding: 1.2rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background-color: #431407;
  color: #f5f5f4;
  transition: all 0.3s;
}

.form-img {
  padding: 20rem;
  background-image: linear-gradient(
      to left,
      rgba(255, 255, 255, 0.05),
      rgba(28, 25, 23, 1.8)
    ),
    url("/images/form.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 200px;
}

.footer {
  padding: 5rem;
  border-top: 1px solid oklch(26.8% 0.007 34.298);
}

.footer-tag {
  color: #444;
  font-size: 2rem;
}
