/* styles.css (PÄIVITETTY) */

/* Pehmeä fontti + rauhallinen pohja */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root{
  --bg: #fbfaf8;
  --paper: #ffffff;
  --ink: #22302a;

  --forest: #1f4d3a;   /* metsänvihreä */
  --wine:   #6b1f3b;   /* viininpunainen (korostus) */

  --muted: #5f6b65;
  --line: #e9e4dc;

  --sage-50: #f2f6f3;
  --sand-50: #f6f0ea;

  --shadow: 0 14px 40px rgba(0,0,0,.06);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Taustakuva */
  background:
    linear-gradient(
      rgba(251,250,248,0.1),
      rgba(251,250,248,0.1)
    ),
    url("assets/tausta-lehvat-tiiliseina.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: var(--ink);
  line-height:1.72;
  letter-spacing:.1px;
}


a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{ max-width:1100px; margin:0 auto; padding:0 18px; }

header{
  position:sticky; top:0; z-index:10;
  background: rgba(251,250,248,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; gap:12px; align-items:center;
  min-width:220px;
}

/* NAV-logo (pieni) */
.brand img{
  height:42px;
  width:auto;
  display:block;
}

.menu{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:center;
}
.menu a{
  padding:8px 10px; border-radius:999px;
  color:var(--muted); font-weight:700; font-size:14px;
}
.menu a:hover{ background: #f3eee6; text-decoration:none; color:var(--ink); }
.menu .cta{
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
}
.menu .cta:hover{ filter:brightness(1.05); }

main{ padding:26px 0 10px; }

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
}

/* HERO: pehmeä tausta + enemmän “hengitystä” */
.hero-card{
  text-align:center;
  position:relative;
  overflow:hidden;
  padding:28px 22px 24px;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-40px -40px auto -40px;
  height:240px;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(31,77,58,.10), transparent 60%),
    radial-gradient(closest-side at 70% 45%, rgba(107,31,59,.08), transparent 65%);
  filter: blur(6px);
  pointer-events:none;
}
.hero-card > *{ position:relative; }

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:stretch;
}
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
  .brand img{ height:38px; }
}

/* Typografia */
h1{
  margin:0 0 10px;
  font-size: 40px;
  line-height:1.12;
  color: var(--forest);
  letter-spacing:-.2px;
}
@media (max-width: 900px){ h1{ font-size:34px; } }

h2{
  margin:0;
  font-size:26px;
  color: var(--forest);
  letter-spacing:-.1px;
}
h3{ margin:0 0 8px; font-size:18px; }

.lead{ margin:0 0 12px; color:var(--muted); font-size:17px; }

.pills{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; justify-content:center; }
.pill{
  font-size:13px; font-weight:800;
  padding:8px 10px;
  border-radius:999px;
  background:#f7f2eb;
  border:1px solid var(--line);
  color:var(--ink);
}

.accent{
  border-left: 4px solid var(--wine);
  padding-left:12px;
  margin:12px 0 0;
  text-align:left;
}

/* ISO HERO-LOGO: 50% leveys (sisältöalueesta) + fade-in */
.hero-logo{
  width: 50%;
  max-width: 560px;
  min-width: 240px;
  height: auto;
  display:block;
  margin: 0 auto 14px auto;

  opacity:0;
  transform: translateY(8px);
  animation: fadeUp .9s ease-out .15s forwards;
}
@keyframes fadeUp{
  to{ opacity:1; transform: translateY(0); }
}

/* Mobiilissa isompi suhteessa */
@media (max-width: 700px){
  .hero-logo{
    width: 82%;
    max-width: 420px;
  }
}

.section{ padding:18px 0; }
.sectionHead{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.sub{ margin:6px 0 0; color:var(--muted); }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:14px;
}
@media (max-width: 900px){ .grid3{ grid-template-columns:1fr; } }

.tag{
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#f2ece4;
  border:1px solid var(--line);
  font-weight:800;
  color: var(--ink);
}

.btnRow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; align-items:center; justify-content:center; }
.btn{
  display:inline-block;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  border:1px solid var(--line);
  background:#fff;
  color: var(--forest);
}
.btn.primary{
  background: var(--forest);
  border-color: transparent;
  color:#fff;
  box-shadow: var(--shadow);
}
.btn:hover{ text-decoration:none; filter:brightness(1.02); }

.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.note{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}

/* Yläpalkin alasvetovalikko */

.dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* "…"-nappi näyttää navin linkiltä */
.dropdown-toggle{
  appearance: none;
  -webkit-appearance: none;

  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;

  background: transparent;
  color: var(--muted);

  font-weight: 800;
  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.dropdown-toggle:hover{
  background: #f3eee6;
  color: var(--ink);
}

.dropdown-toggle:focus-visible{
  outline: 2px solid rgba(31,77,58,.35);
  outline-offset: 2px;
}

/* Itse avautuva menu */
.dropdown-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;

  box-shadow: 0 14px 40px rgba(0,0,0,.10);

  min-width: 220px;

  display: none;           /* JS vaihtaa flexiksi */
  flex-direction: column;

  padding: 8px;
  z-index: 1001;
}

/* TÄRKEÄ: yliaja navin ".menu a" -tyylit dropdownin sisällä */
.menu .dropdown-menu a{
  display: block;

  padding: 10px 12px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;

  color: var(--muted);
  text-decoration: none;

  background: transparent;
}

.menu .dropdown-menu a:hover{
  background: #f3eee6;
  color: var(--ink);
  text-decoration: none;


.dropdown-menu .cta {
  font-weight: 600;
}


footer{
  margin-top:22px;
  border-top: 1px solid var(--line);
  padding:20px 0 34px;
  color:var(--muted);
  font-size:13px;
}
.footRow{ display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; }
