/* ===========================================================
   SIMPPELI SIJOITTAMINEN – YHTEINEN ULKOASU
   =========================================================== */

:root {
  --bg: #ffffff;
  --text: #000000;
  --gold: #f5c542;
  --nav-bg: #111;
  --nav-border: #333;
  --teksti-vaalea: #fff;
  --card-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* ===== YLEISET ASETUKSET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 70px;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  color: var(--teksti-vaalea);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  transition: color .3s ease;
}
.brand:hover { color: #fff; }
.menu {
  display: flex;
  list-style: none;
  gap: .8rem;
}
.menu a {
  color: var(--teksti-vaalea);
  text-decoration: none;
  font-weight: 600;
  padding: .6rem .9rem;
  border-radius: .4rem;
  transition: all .3s ease;
}
.menu a:hover {
  background: rgba(245, 197, 66, 0.15);
  color: var(--gold);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid #333;
  border-radius: .4rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .25s ease;
  padding: .3rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.menu li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===========================================================
   HAMPURILAINEN
   =========================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobiili */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    border-top: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  .menu.show {
    display: flex;
  }
  .menu a {
    display: block;
    padding: 1rem;
  }
  .hamburger { display: flex; }
}

/* ===========================================================
   HERO – Keskitetty, moderni ja brändin mukainen
   =========================================================== */
.hero {
  background: url('header-gold.png') center/cover no-repeat;
  min-height: 320px;

  /* keskitys */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* tekstit keskelle */
  text-align: center;
  padding: 80px 20px;
  position: relative;
  color: white;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;

  background: rgba(0,0,0,0.35);
  padding: .6rem 1rem;
  border-radius: 8px;
  display: inline-block;

  /* varmistaa keskityksen kaikissa näytöissä */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;

  background: rgba(0,0,0,0.45);
  padding: .8rem 1.2rem;
  border-radius: 8px;
  display: inline-block;

  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0.9;
}

/* Mobiili */
@media (max-width: 700px) {

  .hero {
    padding: 60px 15px;
    min-height: 260px;
  }

  .hero h1 {
    font-size: 2rem;
    padding: .6rem 0.9rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    padding: .7rem .9rem;
  }
}


/* ===========================================================
   SISÄLTÖ
   =========================================================== */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem 350px; /* footer-tilaa */
}

.article-content { position: relative; }

/* ===========================================================
   VASEN KUVA & CHECKLIST
   =========================================================== */
.side-image {
  position: absolute;
  left: -420px;
  top: 10px;
  width: 360px;
  height: 360px;
  z-index: 10;
}
.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.left-checklist {
  position: absolute;
  left: -420px;
  top: 390px;
  width: 360px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

@media (max-width: 1000px) {
  .side-image,
  .left-checklist {
    position: static;
    width: 100%;
    margin-bottom: 1.5rem;
  }
}

/* =========================================================== OIKEA SIVUPALKKI — NÄYTÖN OIKEA LAITA =========================================================== */ .right-sidebar { position: fixed; top: 460px; right: 40px; width: 320px; z-index: 2000; display: flex; flex-direction: column; gap: 22px; } .right-sidebar .sidebar-box { background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .right-sidebar .sidebar-box a { color: #0066ff; text-decoration: none; } .right-sidebar .sidebar-box a:hover { color: var(--gold); } /* mobiili */ @media (max-width: 1100px) { .right-sidebar { position: static; width: 100%; margin-top: 2rem; } }
/* ===========================================================
   MOBIILI
   =========================================================== */
@media (max-width: 1100px) {
  .right-sidebar {
    position: static;
    float: none;
    width: 100%;
    margin-top: 2rem;
  }
}


/* ===========================================================
   KORTIT
   =========================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}


.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: #000;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}



/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #111;
  color: #ddd;
  font-size: 0.95rem;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 3rem;
  position: relative;
  z-index: 20;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: .5rem;
}

.footer-col a {
  color: #ddd;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold);
}



/* =============================
   Uutiskirje footerissa
   ============================= */

.newsletter-box {
  background: #111;
  border: 2px solid #f5c542;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(245,197,66,0.15);
}

.footer-newsletter-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: .7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
}

.footer-newsletter-form button {
  width: 100%;
  padding: .7rem;
  border: none;
  border-radius: 6px;
  background: #f5c542;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.footer-newsletter-form button:hover {
  background: #ffe27a;
}

.newsletter-message {
  margin-top: 5px;
  font-size: .95rem;
  font-weight: bold;
  color: #f5c542;
}

/* =============================
   Bottom row
   ============================= */

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  color: #aaa;
  font-size: .9rem;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  margin-right: .6rem;
}

.footer-bottom a:hover {
  color: var(--gold);
}

.bottom-left {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}

.bottom-right {
  text-align: right;
}

/* Mobiili */
@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }

  .bottom-right {
    text-align: center;
  }
}


/* ============================================================
   EVÄSTEET-SIVUN – MODAALI (pieni popup keskelle näyttöä)
============================================================ */

#cookie-settings-e.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

#cookie-settings-e .cookie-modal-content {
  width: 90%;
  max-width: 420px;
  background: #111;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(0,0,0,0.55);
  animation: settingsPopup 0.25s ease-out;
}

/* Pieni sulava avautumis-animaatio */
@keyframes settingsPopup {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ============================================================
   EVÄSTEET-SIVUN POPUP – PAKOTETUT TYYLIT
============================================================ */

#cookie-settings-e.cookie-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* JS näyttää tämän */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6) !important;
  z-index: 999999;
}

#cookie-settings-e.active {
  display: flex !important;
}

#cookie-settings-e .cookie-modal-content {
  background: #111 !important;
  color: #fff !important;
  width: 90%;
  max-width: 420px;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #333;
  box-shadow: 0 0 25px rgba(0,0,0,0.55);
  animation: fadeIn 0.25s ease-out;
}

#cookie-settings-e .cookie-modal-content label {
  color: #fff !important;
}

#cookie-settings-e .cookie-modal-content h3,
#cookie-settings-e .cookie-modal-content p {
  color: #fff !important;
}

@keyframes fadeIn {
  from { opacity:0; transform:scale(0.85); }
  to   { opacity:1; transform:scale(1); }
}

/* ============================================================
   EVÄSTEET-SIVUN NAPIT – KLIKKAUS KORJAUS
============================================================ */
#cookie-settings-e button,
#cookie-settings-e .cookie-btn,
#cookie-settings-e .cookie-modal-content button {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 1000000 !important;
}

#cookie-simple {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  display: none;
  z-index: 99999;
  font-size: 0.95rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

#cookie-simple button {
  margin-left: 10px;
  padding: 8px 14px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  background: var(--gold);
  color: #111;
}
