/* =========================
   1. VARIABLES & RESET
========================= */

:root {
  --accent: #FFFF54;
  --black: #111;
  --light: #fff;
  --max: 1200px;
}

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* =========================
   2. BASE
========================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--black);
}

/* =========================
   3. TYPOGRAPHY
========================= */

h2 {
  font-size:clamp(2rem,4vw,2.7rem);
  margin-bottom:30px;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  margin-bottom: 12px;
}

.container p {
  line-height: 1.6;
}

.ingress {
  font-size: 1.5rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 1200px;
  margin-bottom: 40px;
}

/* =========================
   4. LAYOUT
========================= */

.container {
  max-width:var(--max);
  margin:80px auto;
  padding:0 20px;
  font-size:17px;
}

#contact {
  scroll-margin-top: 100px;
}

/* =========================
   5. NAVIGATION
========================= */

header {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  transition:0.3s;
}


.nav-inner {
  max-width: var(--max);
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition: padding 0.3s ease;
}

header.transparent .nav-inner {
  padding: 30px 20px;
}

header.scrolled .nav-inner {
  padding: 10px 20px;
}

header.transparent {
  background: transparent;
}

header.transparent nav a {
  color: white;
}

header.scrolled {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header.scrolled nav a {
  color: black;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-inner a img {
  display: block;
}


/* NAV LINKS */

nav a {
  margin-left:50px;
  text-decoration:none;
  font-weight:600;
  letter-spacing:0.08em;
  font-size:0.85rem;
  text-transform: uppercase;
  position:relative;
}

nav a::after {
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:0;
  height:2px;
  background:var(--accent);
  transition:0.3s;
}

nav a:hover::after {
  width:100%;
}

nav a.active::after {
  width:100%;
}

/* HAMBURGER */

.menu-toggle {
  display:none;
  flex-direction:column;
  cursor:pointer;
  gap:5px;
}

.menu-toggle span {
  width:25px;
  height:2px;
  background:currentColor;
  display:block;
}

header.transparent .menu-toggle {
  color: white;
}

header.scrolled .menu-toggle {
  color: black;
}

/* =========================
   6. HERO & IMAGE SECTIONS
========================= */

.hero,
.image-section {
  height:100vh;
  position:relative;
}

.hero img,
.image-section img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
}

.strategiatyo .hero img {
  filter: brightness(0.8) contrast(1.08) saturate(1);
}

.strategiatyo .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(20, 40, 70, 0.7),
    rgba(25, 50, 90, 0.35),
    rgba(15, 30, 60, 0.75)
  );
}

.projektityo .hero img {
  filter: brightness(0.7) contrast(1.15);
}

.projektityo .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 34, 56, 0.8),
    rgba(10, 22, 35, 0.45),
    rgba(4, 8, 15, 0.85)
  );
}

.tyonohjaus .hero img {
  filter: brightness(0.8) contrast(1.08) saturate(1);
}

.tyonohjaus .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(20, 40, 70, 0.7),
    rgba(25, 50, 90, 0.35),
    rgba(15, 30, 60, 0.75)
  );
}

.hero-text {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  max-width:1200px;
}

.hero-text h1 {
  color:white;
  font-size:clamp(3.5rem,7vw,4.8rem);
  font-weight:800;
  line-height:1.1;
  position: relative;
}

.highlight {
  color: var(--accent);
}

.hero-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* IMAGE SECTION */

.image-section {
  margin: 80px 0;
  background: linear-gradient(
    180deg,
    #0f2238 0%,
    #0a1623 50%,
    #04080f 100%
  );
}

.image-section-text {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color:white;
  font-size:clamp(3rem,7vw,5rem);
  font-weight:800;
  text-align:center;
}

.image-section-text--small {
  font-size: clamp(2.7rem, 5vw, 3.8rem);
}

/* =========================
   7. CONTENT BLOCKS
========================= */

.content-block {
  margin-bottom: 40px;
}

.content-block p {
  margin-bottom: 1em;
}

.content-block ul {
  padding-left: 0;
  list-style-position: inside;
  margin-bottom: 20px;
}

.content-block li {
  margin-bottom: 4px;
}

.cta {
  margin-top: 60px;
  text-align: center;
}



/* =========================
   VALMENNUSKORTIT
========================= */

.valmennus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 30px;
}

/* Kortti */
.valmennus-card {
  padding: 35px;
  border: none;
  background: rgba(15, 34, 56, 0.03); /* hyvin haalea sininen */
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

/* Ikoni */
.valmennus-icon {
  width: 50px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 10px auto 20px auto;
}

/* Otsikko */
.valmennus-card h3 {
  margin-bottom: 20px;
  text-align: center;
}

/* Teksti */
.valmennus-card p {
  margin-bottom: 0.6em;
}

.valmennus-card p:last-child {
  margin-bottom: 0;
}

/* =========================
   8. SERVICES
========================= */

.services {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin-top: 40px;
}

.service {
  background:#f7f7f7;
  padding:30px;
}

.service-btn {
  display:inline-block;
  margin-top:20px;
  padding:10px 18px;
  background:var(--accent);
  color:#000;
  text-decoration:none;
  font-size:0.85rem;
  font-weight:700;
  letter-spacing:0.05em;
  text-transform:uppercase;
  transition:0.2s;
}

.service-btn:hover {
  background:#000;
  color:#fff;
}

.cta-btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.2s;
}

.cta-btn:hover {
  background: #000;
  color: #fff;
}

/* STRATEGIATYÖN TOIMINTATAVAT */

.toimintatavat {
  margin-top: 20px;
}

.toimintatavat .service {
  background: #f7f7f7;
  padding: 35px;
  border-radius: 6px;
}

/* Typografian hienosäätö korteissa */
.toimintatavat .service h3 {
  margin-bottom: 16px;
}

.toimintatavat .service p {
  font-size: 1rem;
  line-height: 1.6;
}

/* PALVELUT – TYÖNOHJAUS JA TYÖYHTEISÖVALMENNUS */

.palvelut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 30px;
}

.palvelu-card {
  background: #f7f7f7;
  padding: 35px;
  border-radius: 6px;
}

/* Typografia */

.palvelu-card h3 {
  margin-bottom: 16px;
}

.palvelu-card p {
  margin-bottom: 0.8em;
  line-height: 1.6;
}

.palvelu-card ul {
  padding-left: 18px;
  margin: 16px 0;
}

.palvelu-card li {
  margin-bottom: 6px;
}

/* =========================
   9. PEOPLE
========================= */

.people {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.person img {
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:20px;
}

.person .title {
  font-size:0.9rem;
  font-weight:700;
  margin-bottom:10px;
}

.person-links {
  margin-top:15px;
  display:flex;
  gap:15px;
}

.person-links a {
  font-size:0.85rem;
  text-decoration:none;
  color:#666;
  border-bottom:1px solid transparent;
  transition:0.2s;
}

.person-links a:hover {
  color:#000;
  border-bottom:1px solid #000;
}

/* =========================
   10. QUOTE / STATEMENT
========================= */

.quote-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 1200px;
  padding: 20px;
}

.quote-main {
  font-size: clamp(1.2rem, 8vw, 3.4rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 40px;
}

.quote-author {
  font-size: 1.3rem;
  opacity: 0.85;
}

/* =========================
   11. LOGOS
========================= */

.logos {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:30px;
  align-items:center;
}

.logo-box {
  display:flex;
  align-items:center;
  justify-content:center;
  height:80px;
  padding:15px;
  background:#fff;
}

.logo-box img {
  max-width: 90px;
  height: auto;
  object-fit: contain;
}

/* =========================
   12. TESTIMONIALS
========================= */

.testimonials {
  column-count: 2;
  column-gap: 30px;
}

.testimonial {
  padding:30px;
  background:#FFFF54;
  break-inside: avoid;
  margin-bottom: 30px;
}

.testimonial .quote {
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial .name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.testimonial .role {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 0;
}

/* =========================
   13. FAQ
========================= */

.faq {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* =========================
   14. FOOTER
========================= */

footer {
  position:relative;
  color:#fff;
  overflow:hidden;
  background: linear-gradient(
    180deg,
    #0f2238 0%,
    #0a1623 50%,
    #04080f 100%
  );
}

footer::before {
  content:"";
  position:absolute;
  top:-20%;
  left:50%;
  transform:translateX(-50%);
  width:800px;
  height:400px;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.015) 40%,
    transparent 70%
  );
}

.footer-inner,
.footer-bottom {
  position:relative;
  z-index:2;
}

.footer-inner {
  max-width:var(--max);
  margin:auto;
  padding:120px 20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
}

.footer-col h4 {
  margin-bottom:15px;
  font-size:1rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size:1rem;
  line-height:1.6;
  text-decoration:none;
  display:block;
  margin-bottom:16px;
}

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.1);
  text-align:center;
  padding:30px;
  font-size:0.85rem;
  color:rgba(255,255,255,0.5);
}

/* =========================
   15. RESPONSIVE
========================= */

@media(max-width:1100px){

  nav {
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    display:none;
    flex-direction:column;
    padding:20px;
  }

  nav.active {
    display:flex;
  }

  .menu-toggle {
    display:flex;
  }

  nav a {
    margin:10px 0;
    color:black;
  }
}

@media(max-width:768px){

  .services { grid-template-columns:1fr; }
  .people { grid-template-columns:1fr; }
  .logos { grid-template-columns:repeat(2,1fr); }
  .testimonials { column-count:1; }

  .container { margin:30px auto; }

  nav a {
    margin-left:20px;
    font-size:0.8rem;
    color:black !important;
  }

  .footer-inner {
    grid-template-columns:1fr;
  }

  .valmennus-grid {
    grid-template-columns: 1fr;
  }

  .palvelut-grid {
    grid-template-columns: 1fr;
  }
}

/* GLOBAL <P> SPACING */

.container p {
  margin-bottom: 0.8em;
}

.container p:last-child {
  margin-bottom: 0;
}