:root {
  --beige: #fdfaf6;
  --brown: #554f44;
  --dark: #2f2f2f;
  --accent: #f8f8f8;
  --light: #ffffff;
  --line: #e3e3d5;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1.5;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

h1::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 120%;
  height: 2em;
  background: linear-gradient(100deg, #e8dccf, #d4c3ae, #f0e7dc);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: -1;
  opacity: 0.6;
  filter: blur(5px);
}

h2 {
  font-size: 2.8rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin: 0 auto 3rem;
  max-width: max-content;
}

h2::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 250%;
  height: 1.4em;
  background: linear-gradient(100deg, #e8dccf, #d4c3ae, #f0e7dc);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: -1;
  opacity: 0.4;
  filter: blur(5px);
}

h3 {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--accent);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

nav .logo {
  font-weight: 600;
  color: var(--brown);
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  position: relative;
  display: block;
}

nav .logo::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 250%;
  height: 1.4em;
  background: linear-gradient(100deg, #e8dccf, #d4c3ae, #f0e7dc);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: -1;
  opacity: 0.4;
  filter: blur(5px);
}

nav .menu {
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

nav .menu a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav .menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--dark);
  transition: width 0.3s ease;
}

nav .menu a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 28px;
  height: 24px;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

header {
  padding: 5rem 1rem;
  text-align: center;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 90%
    ),
    url(./images/back.jpg) no-repeat center top;
  background-size: cover;
  overflow-x: hidden;
  position: relative;
  height: max-content;
}

header .content {
  position: relative;
  z-index: 1;
  animation: fadeIn 2s ease;
  background-color: var(--accent);
  border-radius: 15px;
  padding: 4rem;
  max-width: 1300px;
  margin: 10rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: max-content;
  box-shadow: -7px -6px 58px 6px rgba(85, 79, 68, 0.75);
  -webkit-box-shadow: -7px -6px 58px 6px rgba(85, 79, 68, 0.75);
  -moz-box-shadow: -7px -6px 58px 6px rgba(85, 79, 68, 0.75);
}

header .content .text {
  margin-right: 7rem;
  max-width: 500px;
}

header .images {
  position: relative;
  right: 0;
}

header .images img {
  width: 25rem;
  z-index: 1;
  border-radius: 15px;
  box-shadow: -7px -6px 58px 6px rgba(85, 79, 68, 0.75);
  -webkit-box-shadow: -7px -6px 58px 6px rgba(85, 79, 68, 0.75);
  -moz-box-shadow: -7px -6px 58px 6px rgba(85, 79, 68, 0.75);
}

header .images img:first-child {
  position: absolute;
  top: -10rem;
  right: 14rem;
  z-index: 10;
}

header .images img:last-child {
  position: absolute;
  top: -19rem;
  right: 0;
}

header p {
  font-size: 1.3rem;
  margin: 0 auto;
}

section {
  padding: 120px 1rem;
  max-width: 1000px;
  margin: auto;
  position: relative;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 1.5rem auto;
  text-align: center;
  line-height: 1.7;
}

#about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  gap: 30px;
}

.image-back {
  max-width: 45%;
}

#about span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: bold;
}

.parallax {
  background: url('./images/parallax.jpg') no-repeat center center fixed;
  background-size: cover;
  height: max-content;
  width: 100%;
  margin: 0;
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.3);
  max-width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 40px 30px 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  margin: 1rem;
  font-size: 1.3rem;
}
.card-number {
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 4rem;
  font-weight: bold;
  color: rgba(42, 42, 42, 0.4);
  z-index: 0;
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem auto;
}

.intro,
.final {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.process-step {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}

.process-step h3 {
  margin: 0 auto 10px;
  font-size: 1.3rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
}

.process-step h3::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 250%;
  height: 1.4em;
  background: linear-gradient(100deg, #e8dccf, #d4c3ae, #f0e7dc);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: -1;
  opacity: 0.4;
  filter: blur(5px);
}

#contact {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1rem 5rem 1rem;
  width: 100%;
  max-width: 100%;
  background: #968f83;
  background: linear-gradient(
    0deg,
    rgba(150, 143, 131, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  margin-bottom: 0;
  margin-top: 0;
}

.contact-grid {
  text-align: center;
}

#contact a {
  display: inline-block;
  margin: 10px;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Playfair Display', serif;
}

#contact a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--brown);
  transition: width 0.3s ease;
}

#contact a:hover::after {
  width: 100%;
}

footer {
  background: var(--brown);
  color: var(--beige);
  text-align: center;
  padding: 1rem;
}

footer span {
  font-family: 'Playfair Display', serif;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1300px) {
  header .images img {
    width: 20rem;
  }
  header .images {
    right: 0;
  }
  header .content .text {
    margin-right: 1rem;
  }
  header .images img:first-child {
    top: -6rem;
  }
}

@media (max-width: 1180px) {
  header .content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 45% 38%;
  }
  .process-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 998px) {
  .burger {
    display: flex;
  }

  nav .menu {
    position: absolute;
    top: 93px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--beige);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    gap: 1rem;
  }

  nav {
    padding: 2rem;
  }

  nav .logo {
    font-size: 1.4rem;
  }

  nav .menu.active {
    min-height: 84vh;
    opacity: 1;
    padding: 2rem;
    align-items: center;
    justify-content: center;
  }

  nav .menu a {
    font-size: 1.7rem;
  }

  section {
    padding: 150px 1rem 1rem;
  }

  header {
    margin-top: 25px;
  }

  header .images img {
    width: 100%;
  }

  header .content {
    display: flex;
    flex-direction: column;
  }

  header .images {
    display: grid;
    position: static;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
  }

  header .images img:first-child,
  header .images img:last-child {
    position: static;
  }

  header .content {
    margin: 1rem 0;
  }

  header h1 {
    font-size: 2rem;
  }

  .parallax {
    padding: 150px 2rem 4rem 2rem;
    margin-bottom: 3rem;
  }

  #about {
    flex-direction: column;
  }
  .image-back {
    max-width: 100%;
    margin-bottom: 64px;
  }
}
