/* =========================================================
   PAJA.CSS — Jäätelökahvila Pajan omat tyylit
   Käyttö: <link rel="stylesheet" href="shared.css">
            <link rel="stylesheet" href="paja.css">
   ========================================================= */

/* =========================================================
   SIVUN TAUSTAKUVA
   ========================================================= */

body.paja-page {
  background-image:
    linear-gradient(
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.85)
    ),
    url("images/pajaPuidenTakaa.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* =========================================================
   HERO — PAJAN TAUSTAKUVA
   ========================================================= */

.site-hero.hero--paja::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.08)),
    url("images/pajaPuidenTakaa.webp");
  background-size: cover;
  background-position: center;
}

/* =========================================================
   TIETOA MEISTÄ -OSIO
   ========================================================= */

.about-section {
  padding: 80px 16px;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.about-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.about-card p {
  margin-bottom: 14px;
  line-height: 1.6;
}

.about-image {
  width: 100%;
  border-radius: 14px;
  margin-top: 16px;
  object-fit: cover;
}

.about-button {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.about-button:hover {
  opacity: 0.85;
}

/* =========================================================
   GOOGLE-ARVOSTELUT
   ========================================================= */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.g-review {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: opacity 250ms ease, transform 250ms ease;
}

.g-review.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.g-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.g-review__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.g-review__gicon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.g-review__from {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.g-review__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.g-review__author {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-review__rating {
  letter-spacing: 1px;
  white-space: nowrap;
}

.g-review__text {
  margin: 8px 0 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-review__time {
  margin-top: auto;
  padding-top: 10px;
  opacity: 0.75;
  font-size: 0.95em;
}

/* =========================================================
   RESPONSIVE — PAJA
   ========================================================= */

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

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