@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
:root {
  --primary-gradient: linear-gradient(
    270deg,
    #fb9600 0%,
    rgba(255, 161, 21, 0.78) 100%
  );
  --primary-color: rgba(255, 161, 21, 1);
  --bg-color: #f2f2f2;
  --text-color: #404040;
  --navbar_bg_color: #f2f2f2;
  --navbar_text_color: #404040;
  --navbar_line_color: linear-gradient(
    270deg,
    #fb9600 0%,
    rgba(255, 161, 21, 0.78) 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
}

h1 {
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-color);
}

h2 {
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
}

p,
a {
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  text-decoration: none;
}

/* NAVBAR */

nav {
  width: 100vw;
  position: fixed;
  height: 100px;
  background-color: var(--navbar_bg_color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

nav a {
  color: var(--navbar_text_color);
}

.nav-wrapper {
  margin: auto;
  max-width: 2400px;
  height: 100%;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
}

.nav-link-wrapper {
  display: flex;
  justify-content: space-between;
  height: 24px;
}

.nav-links {
  width: 50%;
}

.nav-links ul {
  display: flex;
  justify-content: center;
}

.nav-links li {
  text-align: center;
  list-style: none;
  padding: 0 8%;
}

.nav-link::after {
  transition: all 0.5s;
  content: '';
  display: block;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--navbar_line_color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-name ul {
  display: flex;
  list-style: none;
}

.nav-name li {
  border-radius: 21px;
  padding: 10px 20px;
  z-index: 1;
}

.nav-name a {
  color: var(--navbar_text_color);
}

.nav-name a::after {
  content: '';
  background: var(--navbar_line_color);
  margin: auto;
  height: 2px;
  width: 100%;
  display: block;
}

.nav-name {
  transition: transform 0.4s ease-in;
}

.nav-name:hover {
  transform: translateY(-2px);
}

.nav-contact {
  text-align: right;
}

.nav-menubtn {
  display: none;
}

.pagename {
  display: none;
}

.pagename h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--navbar_text_color);
  text-align: center;
  letter-spacing: 2px;
}

/* Koti */

#koti {
  background-image: url('./images/bgimg2.png');
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 0 50px;
}
#koti .card {
    height: unset;
    min-height: 45%;
}
#cards {
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 60px;
}

#kuva.card {
  flex-grow: 2;
  height: 20%;
}

#esittely.card {
  flex-grow: 3;
}

#runo.card {
  flex-grow: 2;
}

/* Hinnat */
#hinnat {
  height: 800px;
  margin-bottom: 7vw;
}

#hinnat .content {
  flex-direction: column;
  align-items: center;
  padding: 7% 30px;
}

#hinnat #circle-cards {
  display: flex;
  justify-content: space-between;
  min-width: 600px;
  margin-bottom: 40px;
}

#hinnat #circle-cards #arvio-card > h2 {
  transform: rotate(-10deg);
}

#hinnat #circle-cards #arvio-card > p {
  transform: rotate(-10deg);
}

#hinnat #circle-cards #terapia-card {
  position: relative;
  margin-top: 100px;
}

#hinnat #circle-cards #terapia-card h2 {
  transform: rotate(10deg);
}

#hinnat ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 100px;
}

#hinnat ul li p::before {
  content: '-';
  padding-right: 8px;
  color: var(--primary-color);
}

/* Footer */

footer {
  height: 300px;
  background: linear-gradient(270deg, #383838 20.47%, #444444 108.09%);
}

footer .container {
  position: relative;
  top: -170px;
  margin: auto;
  width: 85%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
}

.footer-card {
  height: 100%;
  width: 30%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 10px;
  border: 5px solid;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-image-source: linear-gradient(
    270deg,
    #fb9600 0%,
    rgba(255, 161, 21, 0.78) 100%
  );
  border-image-slice: 1;
  background-color: rgb(252, 252, 252);
}

.footer-card h2::after {
  content: '';
  background: linear-gradient(
    270deg,
    #fb9600 0%,
    rgba(255, 161, 21, 0.78) 100%
  );
  margin: auto;
  margin-top: 13px;
  margin-bottom: 15px;
  height: 2px;
  width: 40%;
  display: block;
}

.footer-card p {
  font-size: 16px;
  line-height: 30px;
  font-weight: 500;
  word-wrap: break-word;
}

/* Utilities */

.full-height {
  min-height: 100vh;
}

section {
  background-color: #f2f2f2;
}

header {
  z-index: 1;
  position: relative;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background-color: var(--primary-color);
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  color: #f2f2f2;
}

.content {
  z-index: 0;
  position: relative;
  padding: 3% 20%;
  width: 100%;
  display: flex;
  align-items: center;
}

.full-height .content {
  min-height: 100vh;
}

.content p {
  line-height: 1.6rem;
}

.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 20%;
  height: 45%;
  padding: 1rem 1.2rem;
  border: 5px solid;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-image-source: linear-gradient(
    270deg,
    #fb9600 0%,
    rgba(255, 161, 21, 0.78) 100%
  );
  border-image-slice: 1;
  background-color: rgba(241, 241, 241, 1);
  transition: transform 0.5s, box-shadow 0.5s;
}

.card h2 {
  font-size: 1.2rem;
}

.card p {
  font-size: 1rem;
}

.card img {
  height: 85%;
  object-fit: cover;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.card:hover {
  transform: translateY(-5%);
  box-shadow: 0px 10px 4px rgba(0, 0, 0, 0.25);
}

.card.circle {
  background: #ffffff;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border-color: var(--primary-color);
  border-image-source: unset;
  box-shadow: none;
  gap: 5px;
}
.card.circle:hover {
  transform: unset;
  box-shadow: unset;
}

.card.circle h2 {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.card br {
  content: '';
  margin: 3px;
  display: block;
  font-size: 24%;
}

.btn {
  background: var(--primary-color);
  border: none;
  border-radius: 21px;
  padding: 10px 15px;
  transition: filter 0.3s;
}

.btn:hover {
  filter: brightness(108%);
}

.link {
  position: relative;
  border-bottom: 2px solid var(--primary-color);
}

.link:hover {
  border-bottom: 2px solid #fdbf63;
}

.link:hover {
  color: #818181;
}

form {
  width: 85%;

  margin: auto;
}

.form-input {
  margin-bottom: 10px;
}

.form-input .textInput,
textarea {
  border: none;
  display: block;
  padding: 10px 20px;
  width: 100%;
  background-color: #f2f2f2;
  resize: none;
  font-family: 'montserrat', sans-serif;
  outline: none;
  font-size: 0.9rem;
}

.form-input .underline {
  display: block;
  position: relative;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fb9600;
  transition: width 0.7s;
}

.form-input input:focus + .underline,
.form-input textarea:focus + .underline {
  width: 100%;
}

.spinner {
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  border-top: 4px solid rgba(0, 0, 0, 0);
  width: 40px;
  height: 40px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
  background: rgba(0, 0, 0, 0);
  margin: auto;
  display: none;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 1500px) {
  /* Footer */
  .footer-card {
    width: 50%;
  }
}

@media only screen and (max-width: 1100px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  a,
  p {
    font-size: 1rem;
  }
  .card h2 {
    font-size: 1.2rem;
  }
  .card p {
    font-size: 0.9rem;
  }
  section {
    height: 100%;
  }

  .content {
    padding: 30px 20px;
    height: 100%;
  }
  .content p {
    line-height: 1.5rem;
  }

  /* Navbar */
  nav {
    transition: top 0.3s;
  }
  .nav-links li a {
    font-size: 1rem;
  }
  .nav-name li a {
    font-size: 1.1rem;
  }

  .nav-wrapper {
    grid-template-columns: 1fr;
  }
  .nav-name ul {
    justify-content: center;
  }
  .nav-link-wrapper {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100vh;
    padding-bottom: 50px;
    clip-path: circle(50px at 100% -20%);
    -webkit-clip-path: circle(50px at 100% -20%);
    background: #d1d1d1;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    transition: clip-path 0.7s ease-out;
  }
  .nav-link-wrapper.open {
    clip-path: circle(135vw);
    -webkit-clip-path: circle(135vw);
    pointer-events: all;
  }
  .nav-links {
    margin: 0;
    height: 75%;
  }
  .nav-links ul {
    height: 100%;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .nav-link:hover::after {
    width: 0%;
  }
  .nav-menubtn {
    cursor: pointer;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    position: absolute;
    height: 50px;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .nav-menubtn .burgerlines {
    height: 1px;
    width: 100%;
    display: block;
    background: var(--navbar_text_color);
  }

  /* Koti */
  #koti {
    height: 100%;
    background-size: cover;
    background-position: top;
  }

  #cards {
    padding: 20%;
    padding-top: 100px;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
  }

  #kuva.card img {
    width: unset;
    height: 300px;
  }

  #kuva.card {
    width: unset;
  }

  /* Hinnat */
  #hinnat {
    min-height: 300px;
  }
  #hinnat p {
    font-size: 1rem;
  }
  #hinnat .content {
    padding: 0;
  }

  #hinnat ul {
    padding: 0 20px;
  }

  /* Utilities */
  .full-height {
    min-height: 100%;
  }
  .full-height .content {
    min-height: 100%;
  }
  .card {
    margin-top: 10%;
    width: 70vw;
    padding: 50px;
  }
  .card:hover {
    transform: translateY(0);
    box-shadow: 0px 10px 4px rgba(0, 0, 0, 0.25);
  }
}
@media only screen and (max-width: 700px) {
  /* Koti */
  #koti {
    background-attachment: local;
  }
  #kuva.card {
    width: 90vw;
  }

  #kuva.card img {
    width: 100%;
    height: 400px;
  }

  /* Hinnat */
  #hinnat #circle-cards {
    display: flex;
    justify-content: center;
    min-width: unset;
    width: 100vw;
  }

  #hinnat .card.circle {
    height: 45vw;
    width: 45vw;
  }

  #hinnat ul {
    align-items: flex-start;
    height: 140px;
  }

  /* Footer */
  footer .container {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
  }

  .footer-card {
    width: 100%;
    margin: 20px 0px;
  }

  /* Utilities */
  .card {
    width: 90vw;
  }
}

@media only screen and (max-width: 650px) {
  /* Hinnat */
  #hinnat #circle-cards .card h2 {
    font-size: 3.5vw;
  }
  #hinnat #circle-cards .card p {
    font-size: 2.5vw;
  }
}
