/* ==========================
   Apulintu – styles.css v0.2
   ========================== */

:root{
  --brand-dark: #004d40;
  --brand: #00a676;
  --bg: #ffffff;
  --text: #111;
  --muted: #5a5a5a;

  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.08);

  --radius: 18px;
  --container: 1100px;

  --header-h: 76px;
  --header-pad-x: 42px;

  --bp: 980px;
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
img{ max-width: 100%; height: auto; display:block; }
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.section{ padding: 64px 0; }
.section-alt{ background: rgba(0,0,0,0.02); }

.section-head h2{
  margin: 0 0 10px;
  font-size: 2rem;
  color: var(--brand-dark);
}
.lead{
  margin: 0;
  font-size: 1.15rem;
  color: #222;
  max-width: 70ch;
}
.muted{ color: var(--muted); }
.small{ font-size: .95rem; }

/* ==========================
   Header
   ========================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--header-pad-x);
  transition: transform .25s ease;
}
.site-header.is-hidden{
  transform: translateY(-100%);
}

.brand{
  position: absolute;
  left: var(--header-pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  text-decoration: none;
}
.brand:hover{ text-decoration: none; }
.brand img{ height: 60px; }
.brand-name{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 24px;
}

.nav{ transform: translateX(-14px); }
.nav-list{
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-link{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--brand-dark);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-link:hover{
  background: rgba(0,166,118,0.10);
  color: var(--brand);
  text-decoration: none;
}
.nav-link.is-active{
  border-color: rgba(0,166,118,0.35);
  background: rgba(0,166,118,0.08);
}
.nav-cta{
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand);
}
.nav-cta:hover{
  background: #fff;
  color: var(--brand) !important;
}

.header-actions{
  position: absolute;
  right: var(--header-pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle{
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.lang-toggle:hover{ background: rgba(0,0,0,0.02); }
.lang-pill{ font-weight: 800; color: var(--brand-dark); }
.lang-muted{ opacity: .5; }
.lang-sep{ margin: 0 6px; opacity: .5; }

/* Hamburger */
.menu-toggle{
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
}
.menu-toggle:hover{ background: rgba(0,0,0,0.04); }
.menu-toggle span{
  display: block;
  width: 26px;
  height: 3px;
  background: var(--brand-dark);
  margin: 5px 0;
  border-radius: 3px;
}

/* ==========================
   Hero
   ========================== */
.hero{
  position: relative;
  min-height: 76vh;
  display: grid;
  place-items: center;
  background: url("../img/taustakuva.png") center/cover no-repeat;
  color: #fff;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.hero-inner{
  position: relative;
  text-align: center;
  padding: 18px 0;
}
.hero h1{
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
}
.hero-sub{
  margin: 0 auto 26px;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  max-width: 70ch;
  opacity: .95;
}
.hero-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn-primary{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover{
  background: #fff;
  color: var(--brand);
}
.btn-ghost{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}
.hero-trust{
  margin: 22px 0 0;
  opacity: .9;
}

/* ==========================
   Cards
   ========================== */
.card-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}
.card-icon{
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0,166,118,0.10);
  color: var(--brand);
  font-size: 26px;
  margin-bottom: 12px;
}
.card h3{
  margin: 8px 0 8px;
  font-size: 1.25rem;
  color: var(--brand-dark);
}
.card p{
  margin: 0 0 14px;
  color: #333;
}
.card-link{
  font-weight: 900;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.card-link:hover{
  border-color: var(--brand);
  text-decoration: none;
}

.note{
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,166,118,0.08);
  border: 1px solid rgba(0,166,118,0.18);
  color: #1f3a34;
}

/* ==========================
   Pricing
   ========================== */
.pricing{
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(0,166,118,0.06);
  border: 1px solid rgba(0,166,118,0.16);
}
.pricing-head h3{
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 1.6rem;
}
.pricing-lead{ margin: 0; max-width: 85ch; }
.pricing-grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pricing-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-top{
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-badge{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0,166,118,0.10);
  color: var(--brand);
  font-size: 18px;
}
.pricing-card h4{
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.1rem;
}
.pricing-price{
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pricing-eur{
  font-weight: 900;
  color: var(--brand-dark);
  font-size: 1.6rem;
  letter-spacing: .2px;
}
.pricing-vat{
  color: var(--muted);
  font-weight: 700;
}
.pricing-list{
  margin: 0;
  padding-left: 18px;
  color: #222;
}
.pricing-list li{ margin: 6px 0; }
.pricing-cta{ margin-top: auto; align-self: flex-start; }
.pricing-foot{ margin: 12px 2px 0; }

.pricing-card-featured{
  border-color: rgba(0,166,118,0.25);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* ==========================
   Timeline
   ========================== */
.timeline{
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.timeline li{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.t-title{ font-weight: 900; color: var(--brand-dark); }
.t-meta{ color: var(--muted); margin-top: 2px; }
.t-text{ margin-top: 8px; color: #222; }

/* ==========================
   Steps
   ========================== */
.steps{
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.step{
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.step-num{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0,166,118,0.12);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.step h3{ margin: 0 0 6px; color: var(--brand-dark); }
.step p{ margin: 0; color: #222; }

/* ==========================
   Contact
   ========================== */
.contact-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.contact-card h3{ margin: 0 0 10px; color: var(--brand-dark); }
.contact-card p{ margin: 0 0 14px; }

.social-row{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.social{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--brand-dark);
  text-decoration: none;
}
.social:hover{
  background: rgba(0,0,0,0.02);
  text-decoration: none;
}
.social svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Provider mini-bio */
.provider{
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.provider h3{ margin: 0 0 8px; color: var(--brand-dark); }
.provider-text{ margin: 0; color: #222; max-width: 85ch; }

/* ==========================
   Privacy
   ========================== */
.privacy-box{
  margin-top: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.privacy-box h3{ margin: 0 0 8px; color: var(--brand-dark); }
.privacy-box p{ margin: 0 0 18px; color: #222; }

/* ==========================
   Footer
   ========================== */
.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand{
  font-weight: 900;
  color: var(--brand-dark);
}
.footer-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer-meta a{ color: var(--muted); }
.footer-meta a:hover{ color: var(--brand-dark); }
.dot{ opacity: .6; }
.build{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .9rem;
  opacity: .7;
}
.to-top{
  font-weight: 800;
  color: var(--brand-dark);
}
.to-top:hover{ color: var(--brand); }

/* ==========================
   Responsive + Mobile menu
   ========================== */
@media (max-width: 980px){
  :root{ --header-pad-x: 16px; }

  .brand-name{ display: none; }

  .card-grid{ grid-template-columns: 1fr; }
  .pricing-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }

  .nav{ transform: none; }
  .menu-toggle{ display: block; }

  /* piilota desktop-nav mobiilissa */
  .nav{ display: none !important; }

  /* auki-tila */
  .nav.is-open{
    display: block !important;
    position: fixed;
    inset: 0;
    background: #fff;
    padding: calc(var(--header-h) + 16px) 20px 24px;
    z-index: 2000;
    overflow: auto;
  }

  .nav-list{
    flex-direction: column !important;
    align-items: flex-start;
    gap: 18px;
    font-size: 1.35rem;
  }

  .nav-link{
    width: 100%;
    padding: 12px 14px;
  }

  .pricing-card-featured{ transform: none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .site-header{ transition: none; }
  .btn{ transition: none; }
  .card{ transition: none; }
}
