/* --- Perusasetukset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #2D3A5F;
  --gold: #C9A84C;
  --light-bg: #F5F5F3;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #666;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* --- Navigaatio --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--navy);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

#nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  font-family: 'Arial', sans-serif;
}

#nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

.hero-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s;
  border-radius: var(--radius);
}

.btn:hover { background: #b8933e; transform: translateY(-1px); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover { background: #e8e8e6; }

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* --- Osiot --- */
.section { padding: 5rem 0; }
.section-light { background: var(--light-bg); }
.section-dark { background: var(--navy); color: var(--white); }
.section-accent { background: var(--gold); color: var(--white); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  margin-bottom: 0.75rem;
}

.section-dark h2 { color: var(--white); }
.section-dark h2::after,
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.section-accent h2::after { background: var(--white); }

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-dark .section-intro { color: rgba(255,255,255,0.65); }

/* --- Yritykset --- */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.company-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}

.company-card.active { border-top-color: var(--gold); }
.company-card.exited { border-top-color: #ccc; }

.company-year {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.company-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.company-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--light-bg);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

/* --- Aikajana --- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.timeline-heading {
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: normal;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.timeline-years {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  min-width: 90px;
  padding-top: 0.2rem;
  letter-spacing: 0.03em;
}

.timeline-content strong {
  display: block;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.timeline-content span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Arial', sans-serif;
}

/* --- Media --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.news-source {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-card h4 {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
}

.news-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.news-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  align-self: flex-end;
}

/* --- Blogi --- */
.blogi-container {
  display: flex;
  align-items: center;
}

.blogi-text h2 { color: var(--white); }
.blogi-text h2::after { background: var(--white); }
.blogi-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* --- Yhteystiedot --- */
.yhteystiedot-container { text-align: center; }
.yhteystiedot-container h2::after { margin: 0.75rem auto 2rem; }
.yhteystiedot-container .section-intro { margin: 0 auto 2.5rem; }

.contact-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  padding: 1rem 1.75rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.contact-link:hover { background: var(--navy); color: var(--white); }

.contact-icon {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--gold);
}

/* --- Footer --- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 1.5rem 0;
  text-align: center;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
}

/* --- Mobiili --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 2rem 2rem;
    gap: 1.25rem;
  }

  #nav-links.open { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 2rem;
  }

  .hero-image { order: -1; }
  .hero-image img { max-width: 260px; aspect-ratio: 1/1; object-position: top; }
  .hero-intro { margin: 0 auto 2rem; }

  .timeline-grid { grid-template-columns: 1fr; }

  .section-dark h2::after, h2::after { margin-bottom: 1.5rem; }
}