/* Font Import */
@font-face {
  font-family: 'Tempting';
  src: url('fonts/Tempting.ttf') format('truetype');
}

/* Global Styles */
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

header {
  background: linear-gradient(to right, #aacc9e, #6b9a55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.p1 {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 16px;
  font-family: serif;
  color: black;
}

nav {
  background-color: #76a162;
  display: flex;
  justify-content: space-evenly;
  padding: 10px 0;
  font-family: Georgia, serif;
  font-style: italic;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #333;
  margin: 0 5px;
  font-size: 1em;
}

/* Headings */
.man {
  font-style: italic;
  font-size: 30px;
  text-decoration: underline;
  text-align: center;
  margin: 20px 0;
}

.tempting-text {
  font-family: 'Tempting', cursive;
  font-size: 40px;
  color: #022b15;
  text-align: center;
  padding-top: 10px;
}

.per {
  background: linear-gradient(to right, #a4cf94, #448128);
  color: white;
  height: auto;
  padding: 40px 20px;
}

.para {
  margin-left: 300px;
  margin-right: 300px;
  text-align: center;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}

/* Image Grid */
.cut {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row by default */
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.cut img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 5px solid #2a6c20;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  padding: 4px;
}

/* MEDIA QUERIES */

/* Tablets: show 3 images per row */
@media (max-width: 1024px) {
  .cut {
    grid-template-columns: repeat(3, 1fr);
  }

  .para {
    margin: 0 40px;
  }
}

/* Phones: 2 or 3 depending on size */
@media (max-width: 768px) {
  .cut {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .para {
    margin: 0 20px;
    font-size: 18px;
  }

  .tempting-text {
    font-size: 32px;
  }

  .man {
    font-size: 26px;
  }

  nav a {
    font-size: 0.95em;
  }

  .p1 {
    position: static;
    text-align: center;
    margin: 10px 0;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .cut {
    grid-template-columns: repeat(2, 1fr);
  }

  .para {
    margin: 0 10px;
    font-size: 16px;
  }

  .tempting-text {
    font-size: 26px;
  }

  .man {
    font-size: 22px;
  }

  .p1 {
    font-size: 14px;
  }
}
