/* =========================
   YLEINEN ULKOASU + TAUSTA
   ========================= */
body {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  background:
 /*   radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.28) 65%,
      rgba(0, 0, 0, 0.45) 100%
    ),*/
    linear-gradient(
      rgba(20, 17, 14, 0.18),
      rgba(20, 17, 14, 0.45)
    ),
    url("../images/collie-bg.jpg") center / cover fixed no-repeat;
  color: #F2EFE8;
}

a { color: inherit; }

/* =========================
   HERO
   ========================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
 
}

.hero__panel {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 12vh auto 0 auto;
  padding: 18px 24px;

  background: rgba(0, 0, 0, 0.36);           /* oli 0.22 → luettavampi */
  border-radius: 18px;
  border: 1px solid rgba(185,128,65,.35);

  color: #fff;
  text-align: center;
}

.hero__panel h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero__panel p {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.hero__actions a {
  display: inline-block;
  margin: 10px 12px;
  padding: 14px 32px;
  background: #A8742A;
  color: #14110E;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  transition: transform 0.25s, background 0.25s;
}

.hero__actions a:hover {
  background: #FFD27A;
  transform: scale(1.06);
}
.hero--small {
  height: 55vh;
  min-height: 360px;
}
.hero__panel .cta-buttons a {
  background: #B98041;                /* soopeli */
  border: 1px solid #5A3A1E;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s ease, transform .15s ease;
}

.hero__panel .cta-buttons a:hover {
  background: #5A3A1E;
  transform: translateY(-1px);
}
.lang-btn {
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(185,128,65,.45);
  border-radius: 10px;
  padding: 6px 10px;
}

.lang-btn[aria-pressed="true"],
.lang-btn:hover {
  background: #B98041;
  color: #14110E;
}

.mainmenu-link {
  position: fixed;
  top: 12px;
  left: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: .3px;
  z-index: 9999;
  transition: background .2s ease, transform .15s ease;
}

.mainmenu-link:hover {
  background: rgba(0,0,0,.8);
  transform: translateY(-1px);
}

/* =========================
   AFORISMI
   ========================= */
.section-aphorism {
  max-width: 800px;
  margin: 24px auto 80px auto;
  text-align: center;
  padding: 40px 30px;
  background: rgba(0,0,0,0.35);
  border-radius: 20px;
}

.section-aphorism h2 {
  color: #E0B45C;
  margin-bottom: 25px;
}

.section-aphorism blockquote {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: #F5F1E8;
}

.aphorism-week {
  margin-top: 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #C9B48A;
}

/* =========================
   YLEISET OSIOT
   ========================= */
section {
  padding: 86px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 2.1rem;
  margin-bottom: 22px;
  border-left: 6px solid #A8742A;
  padding-left: 15px;
}

.lead {
  font-family: Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* =========================
   NÄYTTELY / PAIMENNUS
   ========================= */
.section-exhibition {
  background: linear-gradient(rgba(90,65,25,0.52), rgba(40,28,12,0.74));
  border-radius: 18px;
  margin: 40px auto;
}

.section-exhibition h2 { color: #E8C77A; }

.section-herding {
  background: linear-gradient(rgba(25,45,30,0.52), rgba(15,25,18,0.80));
  border-radius: 18px;
  margin: 40px auto;
}

.section-herding h2 { color: #9FD0A6; }

/* =========================
   GRID & KORTIT
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.card-link {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(0,0,0,0.55);
  transition: transform 0.28s, box-shadow 0.28s;
}

.card-link img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.38s, transform 0.38s;
}

.card-link:hover img {
  filter: grayscale(0%) contrast(1.10);
  transform: scale(1.05);
}

.card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.25s;
}

.card-link--herding .card-info {
  background: linear-gradient(transparent, rgba(10,30,18,0.85));
}

.card-link:hover .card-info { opacity: 1; }
.card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

/* erilaisia tunnelmia */
.card__image--mono { filter: grayscale(1); }
.card__image--warm { filter: sepia(.45); }
.card__image--color { filter: saturate(1.2); }

/* =========================
   FOOTER
   ========================= */
footer {
  background: rgba(13,11,9,0.85);
  padding: 26px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #A59B8B;
}

.signature {
  position: fixed;
  bottom: 18px;
  right: 24px;
  font-family: "Georgia", serif;
  font-size: 0.9rem;
  color: rgba(255,210,122,0.82);
}
/* =========================
   STICKY KIELIVALINTA – VASEN REUNA
   ========================= */

.language-switch--sticky {
  position: fixed;
  top: 15%;
  left: 14px;
  transform: translateY(-50%);
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Painikkeet */
.language-switch--sticky button {
  display: flex;
  align-items: center;
  gap: 6px;

  background: rgba(0,0,0,0.55);
  border: 1px solid #E0B45C;
  color: #E0B45C;

  padding: 6px 10px;
  cursor: pointer;
  border-radius: 10px;

  font-weight: bold;
  font-size: 0.75rem;

  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

/* Hover */
.language-switch--sticky button:hover {
  background: #E0B45C;
  color: #14110E;
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

/* SVG-liput */
.language-switch--sticky img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}

/* Aktiivinen kieli */
.language-switch--sticky button.is-active {
  background: #E0B45C;
  color: #14110E;
  box-shadow: 0 0 0 2px rgba(224,180,92,0.45);
}
/* =========================
   FADE KIELENVAIHTOON
   ========================= */

.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Mobiilissa vain liput */
@media (max-width: 768px) {
  .language-switch--sticky {
    left: 8px;
  }

  .language-switch--sticky span {
    display: none;
  }

}
/* =========================
   FADE VAIN TEKSTEILLE
   ========================= */

/* Kaikki käännettävät tekstit */
[data-i18n] {
  transition: opacity 0.25s ease;
}

/* Fade ulos */
.text-fade-out {
  opacity: 0;
}

/* Fade sisään */
.text-fade-in {
  opacity: 1;
}
/* ===============================
   AFORISMI — OMA TYYLI
   =============================== */

/* Ladataan pehmeä serif-fontti */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital@0;1&display=swap');

.section-aphorism {
  max-width: 900px;
  margin: 32px auto 40px auto;
  padding: 24px;
  text-align: center;
}

.section-aphorism h2 {
  margin-bottom: 10px;
}

/* Aforismin teksti – kirkkaampi väritys */
#weeklyAphorism {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 8px auto 6px auto;
  max-width: 760px;

  color: #ffffff;               /* kirkas valkoinen */
  text-shadow: 0 2px 10px rgba(0,0,0,.55),
               0 1px 3px rgba(0,0,0,.35);  /* pehmeä taustavarjo */

  transition: opacity .35s ease, transform .35s ease;
}

/* Viikon numero – hieman harmaampi kuin teksti */
#weekNumber {
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-top: 6px;
  letter-spacing: .3px;
}

/* ===============================
   FADE — vain tekstiin
   =============================== */

.quote-fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.quote-fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* lainausmerkki */
#weeklyAphorism::before {
  content: "“";
  font-size: 2.8rem;
  line-height: 0;
  margin-right: 10px;
  vertical-align: -10px;
  opacity: .9;
}

/* nav-napit */
.aphorism-nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.aphorism-nav button {
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s ease, transform .15s ease;
}

.aphorism-nav button:hover {
  background: rgba(0,0,0,.8);
  transform: translateY(-1px);
}

.aphorism-nav button:active {
  transform: translateY(0);
}
/* =========================
   TOP BAR / MENU
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  z-index: 9999;
}

.topbar-left a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: .3px;
}

.topbar-left a:hover {
  text-decoration: underline;
}

.topbar-left .dot {
  color: rgba(255,255,255,.7);
  margin: 0 8px;
}

/* Ikonit linkkien eteen */
a[data-i18n="menu_home"]::before {
  content: "🏠 ";
}

a[data-i18n="menu_portfolio"]::before {
  content: "🖼️ ";
}
/* Aktiivinen valikko */
.nav-active {
  background: rgba(255,255,255,.25);
  padding: 4px 8px;
  border-radius: 8px;
}
.section.about {
  max-width: 900px;
  margin: 40px auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section.about h2 {
  margin-bottom: 12px;
}
/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: 16px;
}

.logo-name {
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F3E9DB; /* vaalea kerma */
  letter-spacing: .5px;
}

.logo-sub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,.75);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.logo-name {
  color: #B98041;
}

.logo-sub {
  color: #D9A96C;
}
.logo-name::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 4px;
  background: #B98041;
}
@media (max-width: 640px) {
  .logo-name {
    font-size: 1.05rem;
  }
}
/* ISO SARJAKORTTI */
.series-card {
  display: block;
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(185,128,65,.35);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0,0,0,.28);
}

/* ---- Taustakuva ---- */
.series-card__image {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Käytetään vastavalokuvaa */
.series-card__image--herding {
  background-image: url("../images/herding/A_85D4031.jpg");
}

/* Tumma, pehmeä overlay */
.series-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.20),
    rgba(0,0,0,0.45)
  );
 z-index: 2; /* ← overlay vain kuvalle */
}

/* ---- Sisältö ---- */
.series-card__content {
  position: relative;
  z-index: 3;   /* ← varmistaa näkyvyyden */
  color: #2E2A26; /* tumma, lämmin ruskea */
}

.series-card h3 {
  margin-top: 0;
  color: #5A3A1E; /* soopelin tumma */
}

.series-card p {
  margin-bottom: 12px;
  opacity: .9;
}

/* ---- Nappi ---- */
.series-card__button {
  display: inline-block;
  background: #B98041;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #5A3A1E;
  transition: background .2s ease;
}

.series-card:hover .series-card__button {
  background: #5A3A1E;
}
/* ===============================
   PAIMENNUSSIVU – YHTENÄINEN TYYLI
   =============================== */

/* Pienempi hero-tunniste tälle sivulle */
.hero--small {
  height: 42vh;
  min-height: 320px;
}

/* Otsikot sarjalle */
.section h2 {
  color: var(--soopeli-dark);
  margin-bottom: 8px;
}

/* Kuvagalleria */
/* Yksittäinen kuva + kuvateksti */
.herding-shot {
  margin: 0;
  background: rgba(255,255,255,.9);
  border-radius: 16px;
  border: 1px solid rgba(185,128,65,.28);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.herding-shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.herding-shot img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* Kuvateksti */
.herding-shot figcaption {
  padding: 12px 14px 14px 14px;
  font-size: 0.95rem;
  color: var(--soopeli-text);
  line-height: 1.45;
}

/* Linkki kuvasivustolle */
.section a {
  color: var(--forest-green);
  font-weight: 600;
}

.section a:hover {
  color: var(--soopeli-brown);
}

/* Footer */
footer {
  text-align: center;
  padding: 26px 10px 32px 10px;
  font-size: 0.9rem;
  opacity: .8;
  color: var(--soopeli-dark);
}

/* ===============================
   MOBIILISÄÄDÖT
   =============================== */
@media (max-width: 640px) {

  .hero--small {
    height: 36vh;
  }

  .herding-shot img {
    height: 200px;
  }

  .herding-shot figcaption {
    font-size: 0.92rem;
  }
}
/* Paimennuskuvien kuvatekstit tummiksi */
.herding-shot figcaption {
  color: var(--soopeli-dark);

  /* läpinäkyvä tausta */
  background: rgba(255, 255, 255, 0.55);

  padding: 10px 12px 12px;
  border-top: 1px solid rgba(185,128,65,0.25);

  /* kevyt sumeus taustan erottamiseksi (jos selain tukee) */
  backdrop-filter: blur(4px);

  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
/* ============================
   Paimennus-sivun oma grid
   ============================ */

/* Desktop: 2 kuvaa vierekkäin */
.section-herding .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 26px;
  align-items: stretch;
}

/* Tablet & mobiili: 1 kuva per rivi */
@media (max-width: 880px) {
  .section-herding .grid {
    grid-template-columns: 1fr;
  }
}
/* --- Paimennussivun kuvatekstit: täysin läpinäkyvä --- */
.section-herding figure.herding-shot figcaption {
  background: transparent !important;   /* poistaa laatikon */
  backdrop-filter: none !important;     /* varmuudeksi */
  color: #ffffff;                        /* valkoinen teksti -> näkyy kuvalla */

  padding: 10px 12px 12px;
  border: none !important;
  border-radius: 0 !important;

  text-shadow: 0 2px 8px rgba(0,0,0,.55);  /* luettavuus */
}
/* Paimennussivun korttien tausta kokonaan pois */
.section-herding figure.herding-shot {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* FIX: Näyttelygallerian kuvat näkyviin */
.grid figure img,
.herding-shot img {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* FIX: jos korteissa on valkoinen “huntu” overlayn takia */
.grid figure::before,
.herding-shot::before {
  opacity: 0.0 !important;  /* jos haluat pienen huntun, laita esim 0.15 */
}

/* Parempi luettavuus kuvatekstille */
.grid figure figcaption,
.herding-shot figcaption {
  background: rgba(0,0,0,0.35);
  color: #fff;
}
