/* Yhteiset CSS */
/* 1. Sivusto asetukset */
:root {
  --brand-color: rgb(124, 22, 27);
}

body {
  margin: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)),
    url('images/common/parturi.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Bodoni Moda", serif;
}

html {
  scroll-behavior: smooth;
}

/* 2. Navigoinnin ja sen sisällön ominaisuudet */
nav {
  background-color: var(--brand-color);
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: clamp(20px, 2.5vw, 30px);
  color: white;
}

nav li {
  flex: 1;
  text-align: center;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav a:hover {
  opacity: 0.75;
}

nav a.valittu {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  padding: 6px 14px;
  border-radius: 20px;
}

.logo {
  display: block;
  width: 90px;
  border-radius: 7px;
}

/* 3. Footerin ja sen sisällön ominaisuudet */

footer {
  background-color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  padding: 30px 40px;
  min-height: 80px;
}

.footer-mid {
  text-align: center;
}

.footer-some {
  display: flex;
  align-items: center;
  gap: 30px;
}

.instagram,
.tiktok,
.facebook {
  height: 35px;
  width: auto;
  opacity: 0.85;
}

footer a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

footer a:hover {
  opacity: 0.75;
}

.footer-title {
  color: white;
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: bold;
}

footer p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 18px;
}

.logofooter {
  height: 80px;
  width: auto;
  border-radius: 7px;
}

/* 4. Tabletti */
@media (max-width: 1024px) {

  nav a.valittu {
    padding: 4px 6px;
  }

  .logo {
    width: 50px;
  }
}

/* 5. Mobiili */
@media (max-width: 768px) {

  nav {
    padding: 10px 8px 10px 3px;
  }

  nav ul {
    font-size: clamp(10px, 3.8vw, 20px);
    gap: 4px;
  }

  nav a.valittu {
    padding: 4px clamp(4px, 1.5vw, 8px);
  }

  .logo {
    width: clamp(40px, 8vw, 60px);
  }

  body {
    background-attachment: scroll;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 24px 16px;
  }
}

/* Tästä alkaa Indexin omat CSS */

/* 1. Pääkuvan, kuvatekstin, otsikon ja leipätekstin asetukset */

.paaSisalto {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: white;
}

.paa-kuva {
  width: 500px;
  height: 410px;
  border-style: solid;
  border-width: 3px;
  border-radius: 6px;
  margin-left: 110px;
}

.otsikko {
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  border-radius: 10px;
  width: 60%;
  margin: 0 auto;
  padding-bottom: 2.5%;
  box-shadow: 5px 5px 5px rgba(1, 1, 1, 1);
}

.index-esittely {
  color: white;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  justify-content: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  width: 74%;
  line-height: 1.5;
  margin-left: 110px;
}

.index-esittely p {
  margin: 14px 0;
}

.index-esittely a {
  text-decoration: underline;
  text-decoration-thickness: 0.02px;
  text-underline-offset: 2px;
}

.index-linkit {
  text-decoration: none;
  color: white;
}

.index-cta {
  background-color: rgb(204, 61, 74);
  color: white;
  width: 160px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.index-cta:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.index-cta:active {
  opacity: 0.8;
}

/* 2. Hinnaston tyyliasetukset */
.hinnasto {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  max-width: 65%;
  margin: 0 auto;
  padding: 2px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}

.hinnasto h2 {
  color: white;
  margin-bottom: 20px;
}

.hinnasto-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ddd;
}

.hinnasto-lista li {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #3d1515;
}

.hinnasto-lista li:last-child {
  border-bottom: none;
}

/* 3. Toimitilojen kuville, otsikoille ja leipätekstille omat ominaisuudet. */

.toimitilat {
  color: white;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  background-color: rgb(124, 22, 27);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  max-width: 85%;
  margin: 0 auto;
  box-sizing: border-box;
}

.toimitila-kuvat {
  height: 210px;
  border-color: white;
  border-style: solid;
  border-width: 3px;
  border-radius: 6px;
}

/* 4. Asetukset puhelimelle (alle 1175px leveys) */

@media (max-width: 1175px) {

  /* Pääsisältö pystysuuntaan (kuva katoaa) */
  .paaSisalto {
    flex-direction: column;
    align-items: center;
  }

  .paa-kuva {
    display: none;
  }

  .teksti {
    width: 95%;
    justify-content: center;
  }

  /* Otsikko ja esittely leveämmäksi */
  .otsikko {
    width: 95%;
  }

  .index-esittely {
    width: 95%;
    margin-left: 2.5vw;
  }

  /* Call-to-action keskitetään */
  .index-cta {
    margin: 20px auto 0 auto;
  }

  /* Hinnaston puhelinasetukset */

  .hinnasto {
    max-width: 90%;
    justify-content: center;
    margin-left: 25px;
  }

  /* Toimitilat pystysuuntaan */
  .toimitilat {
    flex-direction: column;
    max-width: 80%;
  }

  .toimitila-kuvat {
    width: 50%;
    height: auto;
  }
}

/* Tästä alkaa Yhteystieto-sivun omat CSS */

/* 1. Main */

.yhteystiedot-main {
  margin: 8px;
}

/* 2. Alku teksti */

.yhteystieto-h1 {
  text-align: center;
  color: white;
  text-shadow: 3px 3px #000000;
  font-size: 45px;
  margin-bottom: 10px;
}

.intro-paragraph {
  text-align: center;
  color: white;
  text-shadow: 2px 2px #000000;
  font-size: 20px;
}

/* 3. maps upotus */

.maps-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.map-card {
  flex: 1 1 calc(33.333% - 20px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  background-color: var(--brand-color);
  outline: 4px solid var(--brand-color);
}

.map-card iframe {
  border-radius: 16px;
  width: 100%;
  height: 350px;
  border: 0;
}

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

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px;
}

.yhteystieto-h2 {
  text-align: center;
  color: white;
  font-size: 25px;
  margin: 0;
}

.map-paragraph {
  text-align: center;
  color: white;
  font-size: 17px;
  margin: 0;
}

.card-footer>div {
  flex: 1;
}

.card-footer>div:last-child {
  text-align: center;
}

/* Lisätieto nappi */
.lisatiedot {
  display: inline-block;
  margin-top: 12px;
  color: white;
  border: 1px solid white;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.lisatiedot:hover {
  background-color: white;
  color: var(--brand-color);
  transform: scale(1.05);
}

/* 4. Liikkeiden infosektiot */
.store-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.store-info-card {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  background-color: var(--brand-color);
}

.store-info-left {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-content: start;
}

.store-info-right {
  flex: 0 0 45%;
  max-width: 45%;
  padding: 12px;
}

.store-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-info-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.store-info-row .store-info-block {
  flex: 1;
}

.store-info-text {
  color: white;
  font-size: 17px;
  margin: 0;
  line-height: 1.6;
}

.yhteystieto-h3 {
  color: white;
  font-size: 32px;
  margin: 0 0 4px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 14px;
  width: 100%;
}

.yhteystieto-h4 {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px 0;
}

.store-photo {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* 5. CTA ominaisuudet */

.cta {
  background-color: rgb(204, 61, 74);
  color: white;
  width: 160px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  margin-top: 10px;
}

.cta:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.cta:active {
  background: black;
  opacity: 0.8;
}

/* 6. Tabletti */
@media (max-width: 1024px) {

  .map-card {
    flex: 1 1 calc(50% - 15px);
  }

  .store-info-card {
    flex-direction: column;
  }

  .store-info-left {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
  }

  .store-info-right {
    flex: none;
    max-width: 100%;
    height: 300px;
    order: -1;
  }

  .store-info-block {
    flex: 1;
  }
}

/* 7. Mobiili */
@media (max-width: 768px) {
  .map-card {
    flex: 1 1 100%;
  }

  .card-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .store-info-card {
    flex-direction: column;
  }

  .store-info-right {
    flex: none;
    max-width: 100%;
    height: 220px;
  }

  .store-info-left {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
  }

  .store-info-block {
    width: 100%;
    min-width: 0;
  }

  .store-info-row {
    flex-direction: column;
  }
}

/* Tästä alkaa Meistä-sivun omat CSS */

/* 1. CTA:n ominaisuudet*/

.cta-meista {
  background-color: rgb(204, 61, 74);
  color: white;
  width: 180px;
  height: 70px;
  font-size: 20px;
  font-weight: bold;
  font-family: inherit;
  align-self: center;
  margin-top: auto;
  border-style: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.cta-meista:active {
  background: black;
  opacity: 0.8;
}

.cta-meista:hover {
  transform: scale(1.03);
  cursor: pointer;
}

/* 2. historia sectionin asetukset*/

.historia {
  margin-top: 0;
  font-family: 'Bodoni Moda', serif;
  font-size: 20px;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    url('parturin-työkalut.png');
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.paul-mitchell {
  font-family: cursive;
  font-size: 20px;
}

/* 3. parturikorttien kuvien asetukset */

.parturin-esittely {
  width: 100%;
  max-width: 200px;
  height: 250px;
  object-fit: cover;
  object-position: top;
  border-radius: 15px;
  margin-bottom: 5px;
  border-style: solid;
  border-width: 3px;
  border-color: white;
}

/* 4. parturikorttien (article) asetukset */
.esittely {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  background-color: rgb(124, 22, 27);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  transition: transform 0.3s ease;
  color: white;
  font-size: 20px;
}

.esittely p {
  text-align: center;
}

.esittely:hover {
  transform: scale(1.05);
}

.esittely-otsikko {
  font-size: 35px;
  color: white;

}

.esittely-teksti {
  font-size: 20px;
}

/* 5. Parturikorttien div asetukset*/

.barbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 6. parturikorttien media query*/

@media (max-width: 900px) {
  .barbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .barbers {
    grid-template-columns: 1fr;
  }

  .parturin-esittely {
    width: 100%;
    height: 250px;
  }
}

/* Tästä alkaa Blogisivun CSS */

/* 1. Otsikko ja teksti */
.blogi-teksti {
  color: white;
  text-align: center;
  padding: 80px 40px;
}

.blogi-teksti h1 {
  font-size: 52px;
  margin: 0 0 30px 0;
}

.blogi-teksti h2 {
  font-size: 28px;
  margin: 0 0 20px 0;
}

.blogi-teksti p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 2. Hiustyyli kortit */
.hius-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 40px;
}

.hius {
  background-color: var(--brand-color);
  color: white;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.hius:hover {
  transform: scale(1.05);
}

.hius img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    background-color: var(--brand-color);
    border: 3px solid white;
    box-sizing: border-box;
}

.hius h3 {
  margin: 12px 0 6px 0;
  font-size: 18px;
}

.hius p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* 3. Lue lisää nappi */
.lue-lisaa {
  display: inline-block;
  margin-top: 12px;
  color: white;
  border: 1px solid white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.lue-lisaa:hover {
  background-color: white;
  color: var(--brand-color);
  transform: scale(1.05);
}


/* 4. Tabletti */
@media (max-width: 1024px) {
  .hius-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 5. Mobiili */
@media (max-width: 768px) {
  .hius-grid {
    grid-template-columns: 1fr;
  }
}
