/* =========================
   Base + Variables
========================== */
:root{
  --text:#333;
  --muted:#555;
  --border:rgba(0,0,0,.12);
  --bg:#fff;
  --bg2:#f8f9fa;
  --accent:#0077cc;
  --btn:#333;
  --radius:14px;
  --navH:110px;
  --shadow:0 14px 34px rgba(0,0,0,.08);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:var(--navH);
}

body{
  margin:0;
  font-family:Arial, sans-serif;
  color:var(--text);
  line-height:1.6;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(0,119,204,.06), rgba(255,255,255,0) 60%),
    linear-gradient(to bottom, var(--bg), var(--bg2));
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

section{
  padding:95px 0;
}

/* =========================
   Accessibility helpers
========================== */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.14);
  padding:10px 12px;
  border-radius:10px;
  z-index:2000;
}

.skip-link:focus{
  left:10px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =========================
   Shared section styles
========================== */
.alt{
  background:rgba(255,255,255,.55);
  border-bottom:1px solid rgba(0,0,0,.04);
  backdrop-filter:saturate(140%) blur(6px);
}

.section-title{
  text-align:center;
  margin:0 0 10px;
  color:#222;
  font-size:2.1rem;
  font-weight:800;
  letter-spacing:-.02em;
}

.section-lead{
  text-align:center;
  max-width:75ch;
  margin:0 auto 54px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.75;
}

/* =========================
   Nav
========================== */
nav{
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
  padding:10px 0;
  background:rgba(250,250,250,.78);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid rgba(0,0,0,.08);
}

.nav-container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.logo img{
  max-height:80px;
  width:auto;
  display:block;
}

nav ul{
  list-style:none;
  display:flex;
  gap:12px;
  margin:0;
  padding:0;
}

nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:650;
  display:inline-block;
  padding:9px 12px;
  border-radius:999px;
  transition:background .2s, color .2s, transform .2s;
}

nav a:hover{
  color:var(--accent);
  background:rgba(0,0,0,.04);
  transform:translateY(-1px);
}

.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid rgba(0,0,0,.14);
  border-radius:999px;
  padding:8px 12px;
  font-size:1.05rem;
  cursor:pointer;
  line-height:1;
}

/* =========================
   Hero (header)
========================== */
header{
  position:relative;
  min-height:calc(100vh - var(--navH));
  min-height:calc(100svh - var(--navH));
  display:flex;
  align-items:center;
  text-align:center;
  padding:calc(var(--navH) + 28px) 0 58px;
  overflow:hidden;
  background:
    radial-gradient(1400px 750px at 18% 10%, rgba(0,119,204,.30), transparent 62%),
    radial-gradient(1100px 650px at 85% 22%, rgba(0,180,255,.22), transparent 68%),
    radial-gradient(900px 520px at 50% 95%, rgba(0,119,204,.14), transparent 60%),
    linear-gradient(to bottom, #ffffff 0%, #eff6ff 45%, #e6f0ff 100%);
}

header::before{
  content:"";
  position:absolute;
  inset:-2% 0;
  z-index:0;
  pointer-events:none;
  background:url("Pictures/finnqualita_webtausta_wide.svg") no-repeat center / cover;
  opacity:.52;
  filter:saturate(145%) contrast(115%);
}

header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:170px;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.75) 55%,
    rgba(255,255,255,1) 100%
  );
}

header > .container{
  position:relative;
  z-index:1;
}

.hero-grid{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
}

header h1{
  font-size:3rem;
  line-height:1.06;
  letter-spacing:-.03em;
  margin:0;
  max-width:22ch;
  color:#111;
  text-shadow:0 1px 0 rgba(255,255,255,.55);
}

.hero-subtitle{
  margin:0;
  max-width:72ch;
  color:var(--muted);
  font-size:1.12rem;
  line-height:1.8;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  margin:2px 0 6px;
}

.hero-btn{
  display:inline-block;
  padding:11px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:750;
  background:var(--btn);
  color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.14);
  transition:background .25s, transform .25s, box-shadow .25s;
}

.hero-btn:hover{
  background:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}

.hero-btn.secondary{
  background:rgba(255,255,255,.72);
  color:#222;
  border:1px solid rgba(0,0,0,.14);
  box-shadow:none;
}

.hero-btn.secondary:hover{
  background:rgba(255,255,255,.92);
  transform:translateY(-2px);
}

.hero-glass{
  width:100%;
  text-align:center;
  margin-top:2px;
}

.hero-glass-inner{
  max-width:72ch;
  margin:0 auto;
  color:#2f2f2f;
  font-size:1.05rem;
  line-height:1.9;
}

/* =========================
   Services
========================== */
.services{
  text-align:center;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
  margin-top:34px;
}

.card{
  padding:18px 0;
  text-align:left;
  background:transparent;
  border-top:1px solid var(--border);
  transition:transform .25s, opacity .25s;
}

.card:hover{
  transform:translateY(-3px);
  opacity:.98;
}

.card-top{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:10px;
}

.card-icon{
  width:44px;
  height:44px;
  object-fit:contain;
  flex:0 0 auto;
  opacity:.9;
}

.card h3{
  margin:0;
  font-size:1.08rem;
  color:#222;
  line-height:1.3;
  letter-spacing:-.01em;
}

.card p{
  margin:10px 0 0;
  color:#666;
  font-size:.99rem;
  line-height:1.75;
}

/* =========================
   Foundation
========================== */
.why-steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}

.why-steps li{
  padding:24px 0 6px;
  border-top:1px solid rgba(0,0,0,.14);
  text-align:left;
}

.step-label{
  display:block;
  margin:8px 0 10px;
  font-weight:900;
  letter-spacing:.02em;
  color:#222;
  font-size:1.03rem;
}

.why-steps p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
  font-size:1.01rem;
  max-width:60ch;
}

/* =========================
   About
========================== */
.about-editorial{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
  align-items:start;
  border-top:1px solid rgba(0,0,0,.10);
  padding-top:30px;
}

.about-left{
  padding-right:18px;
  border-right:1px solid rgba(0,0,0,.08);
  margin-top:90px;
}

.about-headline{
  margin:0 0 14px;
  font-size:1.55rem;
  line-height:1.3;
  color:#111;
  letter-spacing:-.02em;
}

.about-text{
  margin:0;
  max-width:70ch;
  color:#3f3f3f;
  font-size:1.03rem;
  line-height:1.9;
  text-align:left;
}

.about-text + .about-text{
  margin-top:14px;
}

.about-right{
  display:grid;
  gap:16px;
}

.about-facts,
.about-principles{
  background:rgba(255,255,255,.70);
  border:1px solid rgba(221,221,221,.80);
  border-radius:calc(var(--radius) + 6px);
  box-shadow:var(--shadow);
  backdrop-filter:saturate(160%) blur(10px);
}

.about-facts{
  padding:12px 16px;
}

.fact-row{
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.fact-row:last-child{
  border-bottom:none;
}

.fact-row strong{
  display:block;
  color:#111;
  font-size:1.10rem;
  letter-spacing:-.01em;
  line-height:1.2;
}

.fact-row span{
  display:block;
  margin-top:6px;
  color:#666;
  line-height:1.65;
  font-size:.96rem;
}

.about-principles{
  padding:16px 18px;
}

.about-principles h3{
  margin:0 0 10px;
  font-size:1rem;
  color:#222;
  letter-spacing:-.01em;
}

.about-principles ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.about-principles li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#555;
  line-height:1.65;
}

.about-principles li::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  margin-top:8px;
  background:rgba(0,0,0,.35);
  flex:0 0 auto;
}

/* =========================
   Contact
========================== */
.contact-wrap{
  display:flex;
  justify-content:center;
  margin-top:28px;
  padding-top:34px;
  border-top:1px solid rgba(0,0,0,.10);
}

form{
  width:100%;
  max-width:900px;
  margin:0 auto;
  padding:18px;
  background:rgba(255,255,255,.66);
  border:1px solid rgba(221,221,221,.85);
  border-radius:calc(var(--radius) + 6px);
  box-shadow:var(--shadow);
  backdrop-filter:saturate(160%) blur(10px);
}

form input,
form textarea{
  width:100%;
  padding:12px 10px;
  margin-bottom:12px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:12px;
  background:rgba(255,255,255,.75);
  font:inherit;
}

form textarea{
  resize:none;
}

form input:focus,
form textarea:focus{
  outline:none;
  border-color:rgba(0,119,204,.55);
  box-shadow:0 0 0 4px rgba(0,119,204,.12);
}

form button{
  padding:11px 18px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-weight:750;
  background:var(--btn);
  color:#fff;
  transition:background .25s, transform .25s, box-shadow .25s;
}

form button:hover{
  background:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
}

/* =========================
   Footer
========================== */
footer{
  background:#f5f5f5;
  padding:40px 20px;
  text-align:center;
  font-size:.95rem;
  color:#777;
  border-top:1px solid rgba(0,0,0,.20);
}

.footer-spacer{
  margin-top:18px;
}

/* =========================
   Animation
========================== */
.fade-in{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease-out, transform .6s ease-out;
}

.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}

/* =========================
   Responsive
========================== */
@media (max-width:980px){
  header h1{
    font-size:2.2rem;
  }

  header::after{
    height:140px;
  }

  .hero-grid{
    gap:18px;
  }

  .why-steps{
    grid-template-columns:1fr;
  }

  .services-grid{
    grid-template-columns:1fr;
  }

  .about-editorial{
    grid-template-columns:1fr;
  }

  .about-left{
    margin-top:0;
    padding-right:0;
    border-right:none;
    border-bottom:1px solid rgba(0,0,0,.08);
    padding-bottom:18px;
  }
}

@media (max-width:700px){
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    gap:8px;
  }

  nav ul{
    display:none;
    width:100%;
    flex-direction:column;
    gap:8px;
    padding-top:10px;
  }

  nav ul.open{
    display:flex;
  }

  .nav-container{
    flex-wrap:wrap;
  }

  header{
    padding:calc(var(--navH) + 22px) 0 52px;
  }
}
