/* ============================================================
   SERBUS — style.css
   Rakenne:
   1. CSS-muuttujat (värit, fontit, koot)
   2. Reset & pohja
   3. Navigaatio
   4. Hero
   5. Trust bar
   6. Kenelle-osio
   7. Kysymykset-osio
   8. Mitä saat -osio
   9. Palvelut
  10. Prosessi
  11. Referenssit
  12. About
  13. Yhteystiedot & lomake
  14. Footer
  15. Animaatiot
  16. Responsiivisuus (mobiili)
   ============================================================ */


/* ── 1. CSS-MUUTTUJAT ───────────────────────────────────────── */
:root {
  /* Taustavärit */
  --bg:    #0a0a0f;
  --bg2:   #111118;
  --bg3:   #18181f;
  --bg4:   #1e1e28;

  /* Reunat */
  --border:  rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);

  /* Brändivärit — vaihda tästä kaikki kerralla */
  --accent:  #6c63ff;
  --accent2: #a78bfa;

  /* Tila-/viesti-värit */
  --green: #4ade80;
  --amber: #fbbf24;
  --red:   #f87171;

  /* Typografia */
  --text:  #e8e8f0;
  --muted: #8888a0;

  /* Muoto */
  --radius: 16px;
  --radius-sm: 10px;

  /* Hero-kuvan korkeus — vaihda tarvittaessa */
  --hero-height: 100vh;
}


/* ── 2. RESET & POHJA ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

section { padding: 6rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Osio-otsikko-apuluokat */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .8rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}


/* ── 3. NAVIGAATIO ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: .55rem 1.3rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}

.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

/* Hampurilaisvalikko (mobiili) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}


/* ── 4. HERO ────────────────────────────────────────────────── */
#hero {
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;

  /* ── TAUSTAKUVA: vaihda tiedostopolku tähän ──
     Esim: background-image: url('../img/hero-bg.jpg');
     Käytä mieluiten 1920px leveää kuvaa (.jpg tai .webp).     */
  background-image: url('../img/hero-bg.jpg');   /* PLACEHOLDER */
  background-size: cover;
  background-position: center;
}

/* Tumma peitto kuvan päällä — säädä opacity (0–1) */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.72);
  z-index: 0;
}

/* Violetti hehku-efekti */
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, .16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(108, 99, 255, .15);
  border: 1px solid rgba(108, 99, 255, .3);
  color: var(--accent2);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem 1rem;
  margin-bottom: 1.8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}

h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(232, 232, 240, 0.85);
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(108, 99, 255, .4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(108, 99, 255, .6);
}

.btn-outline {
  border: 1px solid var(--border2);
  color: var(--text);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.btn-outline:hover {
  border-color: var(--accent2);
  background: rgba(108, 99, 255, .07);
}


/* ── 5. TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 2rem;
}

.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}

/* Toimiala-ikoni trust-barissa */
.trust-item img {
  width: 20px;
  height: 20px;
  opacity: .7;
}


/* ── 6. KENELLE ─────────────────────────────────────────────── */
#kenelle { background: var(--bg2); }

.kenelle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.kenelle-col-label {
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

/* Toimialakortti */
.industry-list { display: flex; flex-direction: column; gap: .75rem; }

.industry-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s;
}

.industry-item:hover { border-color: rgba(108, 99, 255, .35); }

/* Toimiala-ikoni — vaihda SVG/PNG tähän
   Kuvakoko: 32×32 px suositeltu                               */
.industry-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg4);
  border-radius: 10px;
  /* Placeholder-teksti korvataan kuvalla:
     <img src="../img/icons/kauppa.svg" alt=""> */
}

.industry-icon img {
  width: 24px;
  height: 24px;
}

.industry-name { font-weight: 600; font-size: .95rem; }
.industry-desc { font-size: .8rem; color: var(--muted); }

/* Yrityskoko */
.size-grid { display: flex; flex-direction: column; gap: 1rem; }

.size-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.size-badge {
  background: rgba(108, 99, 255, .15);
  border: 1px solid rgba(108, 99, 255, .25);
  color: var(--accent2);
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.size-text { font-size: .88rem; color: var(--muted); }

.kenelle-tip {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: rgba(108, 99, 255, .08);
  border: 1px solid rgba(108, 99, 255, .2);
  border-radius: 12px;
  font-size: .88rem;
  color: var(--muted);
}

.kenelle-tip strong { color: var(--text); }


/* ── 7. KYSYMYKSET ──────────────────────────────────────────── */
#kysymykset { background: var(--bg); }

.questions-intro { margin-bottom: 3rem; }

.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.q-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .3s, transform .2s;
}

.q-card:hover {
  border-color: rgba(108, 99, 255, .35);
  transform: translateY(-2px);
}

.q-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: .1rem;
  background: rgba(108, 99, 255, .15);
  color: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
}

.q-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; }
.q-card p strong { color: var(--text); display: block; margin-bottom: .3rem; font-size: .97rem; }


/* ── 8. MITÄ SAAT ───────────────────────────────────────────── */
#mita-saat { background: var(--bg2); }

.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.deliv-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .2s;
}

.deliv-card:hover {
  border-color: rgba(108, 99, 255, .4);
  transform: translateY(-3px);
}

.deliv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}

.deliv-card:hover::after { opacity: 1; }

.deliv-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.deliv-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.deliv-card p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

.deliv-tag {
  display: inline-block;
  margin-top: .9rem;
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .25);
  color: var(--green);
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
}


/* ── 9. PALVELUT ────────────────────────────────────────────── */
#palvelut { background: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}

.card:hover { border-color: rgba(108, 99, 255, .4); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 99, 255, .15);
  border: 1px solid rgba(108, 99, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

/* Vaihda emoji SVG-kuvakkeeseen:
   <img src="../img/icons/konsultointi.svg" alt="" width="28"> */

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .7rem; }
.card > p { color: var(--muted); font-size: .93rem; line-height: 1.65; }

.card-list { list-style: none; margin-top: 1.2rem; }

.card-list li {
  color: var(--muted);
  font-size: .88rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.card-list li:last-child { border: none; }
.card-list li::before { content: '→'; color: var(--accent2); font-size: .8rem; }


/* ── 10. PROSESSI ───────────────────────────────────────────── */
#prosessi { background: var(--bg2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 20px rgba(108, 99, 255, .4);
}

.step h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .88rem; }


/* ── 11. REFERENSSIT ────────────────────────────────────────── */
#referenssit { background: var(--bg); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testi-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testi-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent2);
  opacity: .5;
  margin-bottom: .5rem;
}

.testi-text {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.4rem;
}

.testi-author { display: flex; align-items: center; gap: .8rem; }

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  overflow: hidden;
}

/* Vaihda teksti kuvaksi:
   <img src="../img/avatars/asiakas1.jpg" alt="Asiakkaan kuva"> */

.testi-name { font-weight: 700; font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--muted); }

/* Placeholder-kortti */
.testi-placeholder {
  border-style: dashed;
  opacity: .5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  gap: .5rem;
}


/* ── 12. ABOUT ──────────────────────────────────────────────── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Profiilikuva — vaihda taustaan oikea kuva:
   background-image: url('../img/joni.jpg');
   Suositeltu koko: 600×600 px                                  */
.about-avatar {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(108,99,255,.25), rgba(167,139,250,.1));
  background-image: url('../img/joni.jpg');   /* PLACEHOLDER */
  background-size: cover;
  background-position: center top;
  border: 1px solid var(--border);

  /* Poistetaan, kun oikea kuva on käytössä: */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.about-text p { color: var(--muted); margin-bottom: 1rem; }

.about-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; }


/* ── 13. YHTEYSTIEDOT & LOMAKE ──────────────────────────────── */
#yhteystiedot { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info > p { color: var(--muted); margin-bottom: 2rem; }

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, background .2s;
}

.contact-link:hover {
  border-color: rgba(108, 99, 255, .4);
  background: rgba(108, 99, 255, .06);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 99, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link-text { font-size: .85rem; color: var(--muted); }
.contact-link-val { font-weight: 600; font-size: .95rem; }

/* Lomake */
.form-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.form-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }

.form-group label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .93rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, .15);
}

.form-group select option { background: var(--bg2); }
.form-group textarea { min-height: 110px; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 0 25px rgba(108, 99, 255, .35);
}

.btn-submit:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(108, 99, 255, .5);
}

#form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green);
  font-weight: 600;
}


/* ── 14. FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

footer strong { color: var(--text); }

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

footer a:hover { color: var(--text); }


/* ── 15. ANIMAATIOT ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Käytä data-delay-attribuuttia viiveelle:
   <div class="fade-in" data-delay="200"> → lisätään JS:ssä */


/* ── 16. RESPONSIIVISUUS ────────────────────────────────────── */
@media (max-width: 900px) {
  .kenelle-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }

  nav.open .nav-cta {
    display: block;
    margin-top: .5rem;
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }

  .about-avatar { max-width: 180px; font-size: 4rem; }

  .hero-btns { flex-direction: column; align-items: center; }

  .trust-bar-inner { gap: 1.5rem; }
}


/* ── EVÄSTEBANNERI ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  padding: 1rem 2rem;
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}

#cookie-banner.cookie-visible  { transform: translateY(0); }
#cookie-banner.cookie-hiding   { transform: translateY(110%); }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text strong {
  display: block;
  margin-bottom: .3rem;
  font-size: .95rem;
}

.cookie-text p {
  color: var(--muted);
  font-size: .83rem;
  max-width: 620px;
  line-height: 1.5;
}

.cookie-policy-link {
  color: var(--accent2);
  font-size: .8rem;
  text-decoration: none;
  display: inline-block;
  margin-top: .4rem;
}

.cookie-policy-link:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: .6rem 1.3rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s;
}

.cookie-btn:hover { opacity: .85; transform: translateY(-1px); }

.cookie-btn-primary {
  background: var(--accent);
  color: #fff;
}

.cookie-btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}

@media (max-width: 600px) {
  .cookie-inner    { flex-direction: column; align-items: flex-start; }
  .cookie-actions  { width: 100%; }
  .cookie-btn      { flex: 1; text-align: center; }
}


/* ── LOMAKKEEN VIRHEVIESTI ──────────────────────────────────── */
.form-error-msg {
  color: var(--red);
  font-size: .85rem;
  margin-top: .5rem;
  min-height: 1.2em;
}

/* Lähettämisen latausanimaatio */
.btn-submit.loading {
  opacity: .7;
  cursor: not-allowed;
}

.btn-submit.loading::after {
  content: ' ⏳';
}
