/* ============================================================
   HIIROSOFT OY – STYLES
   ============================================================
   Värit, typografia ja layout helposti muokattavissa.
   ============================================================ */

/* --- VÄRIT --- */
:root {
  --primary: #2d5a3f;        /* Metsänvihreä */
  --primary-light: #3a7a54;  /* Vaaleampi vihreä (hover) */
  --primary-bg: #e8f5e9;     /* Vaaleanvihreä tausta */
  --text: #1a2e22;           /* Tumma teksti */
  --text-muted: #5a7a66;     /* Harmainen teksti */
  --bg: #f5faf6;             /* Sivun tausta */
  --card-bg: #ffffff;        /* Kortin tausta */
  --border: #c8ddd0;         /* Reunaviiva */
  --tag-bg: #e0ede4;         /* Tagin tausta */
  --tag-text: #2d5a3f;       /* Tagin teksti */
  --footer-text: #5a7a66;    /* Footerin teksti */
}

/* --- PERUS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

/* --- HERO BANNER --- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #2d5a3f, #1e3d2a, #243d2e);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .hero-inner { padding: 6rem 1.5rem; }
}

@media (min-width: 768px) {
  .hero-inner { padding: 8rem 2rem; }
}

/* --- LOGO (BANNERI) --- */
.logo-container {
  max-width: 462px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- SISÄLTÖ --- */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .content { padding: 4rem 1.5rem; }
}

@media (min-width: 768px) {
  .content { padding: 5rem 2rem; }
}

/* --- OSIOT --- */
.section {
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .section { margin-bottom: 4rem; }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 640px) {
  .section-title { font-size: 1.875rem; }
}

/* --- TEKSTI --- */
.section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* --- TAGIT --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.875rem;
}

.tag svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* --- EROTTINEN --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .divider { margin-bottom: 4rem; }
}

/* --- PROJEKTI-OSIO --- */
.project-section {
  text-align: center;
}

.project-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-logo-container {
  max-width: 340px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-fallback {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 640px) {
  .project-fallback { font-size: 1.875rem; }
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.project-button:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

.project-button svg {
  width: 1rem;
  height: 1rem;
}

/* --- YHTEYSTIEDOT --- */
.contact-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--card-bg);
  padding: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary-light);
}

.contact-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- TIETOSUOJASELOSTE --- */
.privacy-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.privacy-toggle:hover {
  color: var(--primary);
}

.privacy-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.privacy-toggle.open svg {
  transform: rotate(90deg);
}

.privacy-content {
  display: none;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

.privacy-content.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.privacy-content h4 {
  font-weight: 500;
  color: var(--text);
  padding-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.privacy-content p {
  margin-bottom: 0.75rem;
}

.privacy-content p:last-child {
  margin-bottom: 0;
}

.privacy-updated {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  padding-top: 0.5rem;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--footer-text);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .footer-left {
    flex-direction: row;
    gap: 1rem;
  }
}

.footer-divider {
  display: none;
}

@media (min-width: 640px) {
  .footer-divider {
    display: inline;
    color: var(--border);
  }
}