@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,600&family=Jost:wght@400;500&display=swap");

:root {
  --cream: #faf5ec;
  --ink: #2f2a28;
  --green: #44704a;
  --pink: #d98aa6;
  --pink-dark: #a8436a;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Jost", sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.logo__img {
  width: 64px;
}

.logo__name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 26px;
}

.logo__studio {
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
}

.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.nav__link:hover {
  color: var(--pink-dark);
}

/*
HERO
*/

.hero {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__para {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover {
  background: var(--pink-dark);
}

/*
SERVICE
*/

.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  text-align: center;
  margin-bottom: 48px;
}

.pink {
  color: var(--pink-dark);
  font-style: italic;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service {
  background: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(47, 42, 40, 0.32);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.service::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(217, 138, 166, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 1000ms ease,
    height 1000ms ease;
}

.service:hover::before {
  width: 700px;
  height: 700px;
}

.service:hover {
  transform: translateY(-6px);
}

.service > * {
  position: relative;
}

.service--active {
  background: #f6d7e2;
}

.service__icon {
  font-size: 36px;
  color: var(--green);
  margin-bottom: 16px;
}

.service__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  margin-bottom: 12px;
}

.service__para {
  line-height: 1.6;
}

/*
ABOUT
*/

.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.about__img--wrapper {
  flex: 0 0 340px;
}

.about__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(47, 42, 40, 0.12);
}

.about__title {
  text-align: left;
  margin-bottom: 24px;
}

.about__para {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/*
FORM
*/

.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.contact__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
}

.contact__para {
  font-size: 24px;
}

.contact__form {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(47, 42, 40, 0.32);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.contact__form::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(217, 138, 166, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 1000ms ease,
    height 1000ms ease;
}

.contact__form:focus-within::before {
  width: 800px;
  height: 800px;
}

.contact__form > * {
  position: relative;
}

.contact__form--active {
  background: #f6d7e2;
}

.submit__form {
  width: 100%;
  background: var(--green);
  color: white;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.submit__form:hover {
  background: var(--pink-dark);
}

.form__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
}

.phone__question {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
  font-weight: 500;
}

.form__answer {
  display: flex;
  padding-top: 16px;
}

.answer__btn {
  margin-left: 20px;
  margin-right: 6px;
  cursor: pointer;
}

.contact__item--wrapper {
  display: flex;
  justify-content: space-between;
}

.contact__instruct {
  font-size: 18px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.message__submit {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.message__sub {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 32px;
}

textarea {
  height: 100px;
  border-width: 2px;
  border-top-color: var(--pink-dark);
  border-bottom-color: var(--pink-dark);
  border-style: inset;
  border-radius: 8px;
  padding: 8px;
}

.input {
  border-radius: 8px;
  border-color: #a8436a;
  padding: 8px;
  width: 100%;
  border-style: inset;
}

/*
FOOTER
*/

footer {
  background-color: rgb(250, 213, 218);
  padding: 32px;
}

.footer__logo {
  width: 64px;
}

.footer__title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 26px;
}

.footer__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer__list {
  display: flex;
  justify-content: space-evenly;
  padding: 40px;
}

a {
  text-decoration: none;
  color: var(--pink-dark);
  cursor: pointer;
}

li {
  list-style: none;
}

.footer__copyright {
  display: flex;
  justify-content: center;
  padding: 24px;
  gap: 6px;
}

.footer__copyright--title {
  font-size: 12px;
}

/*
@MEDIA
*/

@media (max-width: 768px) {
  .header {
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .services__list {
    display: flex;
    flex-direction: column;
  }

  .about {
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 32px;
  }

  .about__img--wrapper {
    max-width: 50%;
    flex: none;
  }

  .contact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    justify-content: space-between;
  }

  .contact__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 40px;
    gap: 18px;
  }

  .form__title {
    padding-bottom: 18px;
  }

  .contact__item--wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
  }

  .contact__item {
    padding: 0;
  }

  .message__submit {
    justify-content: space-between;
    align-items: center;
    gap: 18px;
  }

  .input {
    width: 100%;
    justify-content: space-evenly;
    align-items: stretch;
  }

  .submit__form {
    width: 60%;
    justify-content: center;
    text-align: center;
    font-family: inherit;
    font-size: 12px;
  }

  .message__sub {
    font-size: 18px;
    font-weight: 500;
  }

  footer {
    padding: 16px;
  }

  .footer__head {
    align-items: center;
    justify-content: center;
    align-items: center;
  }

  .footer__tag {
    text-align: center;
  }

  .footer__links {
    text-align: center;
    font-size: 12px;
    gap: 8px;
  }

  .footer__link {
    font-size: 24px;
  }

  .footer__link--text {
    display: none;
  }

  .footer__list {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
  }

  .footer__copyright {
    padding: 0;
  }
}
