/* ============================================================
   Astalo — jaettu tyylitiedosto kaikille kieliversioille
   ============================================================ */

/* --- Muuttujat ---
   Värimaailma: teräsharmaa tausta, rautaruoste-aksentti.
   "Ei näyttävä, mutta luotettava." */
:root {
  --bg:             #e0e0de;   /* teräsharmaa tausta — selvästi harmaa, ei valkoinen */
  --bg-input:       #ebebea;   /* lomakekentät, hieman vaaleampi */
  --text:           #1a1a18;   /* lähes musta, pieni lämmin sävy */
  --text-muted:     #606060;   /* toissijainen teksti */
  --accent:         #7c3828;   /* rautaruoste */
  --accent-dark:    #5e2a1c;   /* ruosteen tumma sävy hover-tilaan */
  --border:         #a8a8a6;   /* teräksenharmaa reunaviiva */
  --border-light:   #bebebe;   /* kevyt erottaja */

  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-width:    720px;
  --padding-x:    1.5rem;
  --section-gap:  4rem;
}

/* --- Pohja ja nollaus --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin:  0;
  padding: 0;
}

html {
  font-size: 18px;
}

body {
  font-family: var(--font);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Typografia ---
   Kaksi kokoa otsikoille: iso hero, pienempi osio-otsikko. */
h1 {
  font-size:      2rem;
  line-height:    1.2;
  font-weight:    700;
  letter-spacing: -0.02em;
}

h2 {
  font-size:      1.2rem;
  font-weight:    600;
  line-height:    1.35;
  letter-spacing: -0.01em;
}

p {
  margin-top: 0.75rem;
}

p:first-child {
  margin-top: 0;
}

a {
  color:                    var(--accent);
  text-decoration:          underline;
  text-decoration-thickness: 1px;
  text-underline-offset:    3px;
}

a:hover {
  color: var(--accent-dark);
}

/* --- Asettelu --- */
.container {
  max-width: var(--max-width);
  margin:    0 auto;
  padding:   0 var(--padding-x);
}

/* --- Sivuston otsikko --- */
.site-header {
  padding:       1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

/* Logo: teksti "astalo" jossa T-kirjain on SVG-leka.
   Inline SVG istuu suoraan sanan sisään — ei erillinen ikoni. */
.site-logo {
  font-weight:     700;
  font-size:       1.05rem;
  color:           var(--text);
  text-decoration: none;
  letter-spacing:  -0.01em;
  white-space:     nowrap;
}

.site-logo:hover {
  color: var(--text);
}

/* T-kirjaimen tilalla oleva leka-SVG.
   Korkeus vastaa suuraakkosten cap-korkeutta, pystytanko alaoikeaan =
   varsi, vaakalevy ylhäällä = vasaranpää. */
.logo-t {
  display:        inline-block;
  height:         0.72em;     /* cap-korkeus arviolta */
  width:          auto;
  vertical-align: -0.08em;   /* tasaa SVG-pohja tekstin baseline-viivalle */
}

/* --- Kielenvalinta navigaatiossa --- */
.lang-nav {
  display:   flex;
  gap:       1rem;
  list-style: none;
  font-size: 0.85rem;
}

.lang-nav a {
  color:           var(--text-muted);
  text-decoration: none;
}

.lang-nav a:hover {
  color: var(--text);
}

.lang-nav a[aria-current="page"] {
  color:       var(--text);
  font-weight: 600;
}

/* --- Hero-osio --- */
.hero {
  padding:       calc(var(--section-gap) * 1.25) 0 var(--section-gap);
  border-bottom: 1px solid var(--border-light);
}

.hero h1 {
  max-width: 580px;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size:  1.05rem;
  color:      var(--text-muted);
  max-width:  500px;
}

/* Kolme avainarvoa hero-osion alla */
.hero-values {
  margin-top:  2.5rem;
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.4rem 2rem;
  list-style:  none;
  font-size:   0.88rem;
  font-weight: 500;
  color:       var(--text-muted);
}

.hero-values li {
  display:     flex;
  align-items: center;
  gap:         0.45rem;
}

.hero-values li::before {
  content:     "—";
  color:       var(--accent);
  font-weight: 700;
}

/* --- Yleiset sisältöosiot --- */
.section {
  padding:       var(--section-gap) 0;
  border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
  border-bottom: none;
}

/* Pieni otsikkoetiketti osion yläpuolella (esim. "Peruspalvelu") */
.section-label {
  font-size:      0.75rem;
  font-weight:    600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color:          var(--text-muted);
  margin-bottom:  0.75rem;
}

.section h2 {
  margin-bottom: 1.5rem;
}

/* --- Ominaisuuslista (peruspalvelu) --- */
.feature-list {
  list-style:      none;
  display:         flex;
  flex-direction:  column;
  gap:             1.35rem;
}

.feature-list li {
  display:               grid;
  grid-template-columns: 1.25rem 1fr;
  gap:                   0 0.75rem;
  align-items:           start;
}

/* Checkmark-merkki metallin värillä */
.feature-list li::before {
  content:     "✓";
  color:       var(--accent);
  font-weight: 700;
  line-height: 1.65;
}

.feature-list strong {
  display: block;
}

.feature-list span {
  color:     var(--text-muted);
  font-size: 0.92rem;
}

/* --- Lisäpalvelulista --- */
.addon-list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            1.35rem;
  margin-top:     1.5rem;
}

.addon-list li {
  display:               grid;
  grid-template-columns: 1.25rem 1fr;
  gap:                   0 0.75rem;
  align-items:           start;
}

.addon-list li::before {
  content:     "+";
  color:       var(--accent);
  font-weight: 700;
  line-height: 1.65;
}

.addon-list strong {
  display: block;
}

.addon-list span {
  color:     var(--text-muted);
  font-size: 0.92rem;
}

/* --- Referenssilaatikko --- */
.references {
  margin-top:  1.75rem;
  padding:     1.1rem 1.25rem;
  border-left: 3px solid var(--border);
  font-size:   0.9rem;
  color:       var(--text-muted);
}

/* --- Yhteydenottolomake --- */
.contact-form {
  margin-top:     2rem;
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
  max-width:      460px;
}

.form-field {
  display:        flex;
  flex-direction: column;
  gap:            0.4rem;
}

.form-field label {
  font-size:   0.88rem;
  font-weight: 500;
}

/* Vapaaehtoinen-merkintä kentän otsikossa */
.form-field .optional {
  font-weight: 400;
  color:       var(--text-muted);
  font-size:   0.82rem;
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size:   1rem;
  color:       var(--text);
  background:  var(--bg-input);
  border:      1px solid var(--border);
  padding:     0.6rem 0.75rem;
  width:       100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline:      none;
  border-color: var(--accent);
}

.form-field textarea {
  resize:     vertical;
  min-height: 100px;
}

/* Painike: rautaruoste-väri, ei pyöristyksiä */
.btn {
  display:         inline-block;
  background:      var(--accent);
  color:           #fff;
  border:          none;
  padding:         0.65rem 1.5rem;
  font-family:     var(--font);
  font-size:       1rem;
  font-weight:     600;
  cursor:          pointer;
  text-decoration: none;
  align-self:      flex-start;
}

.btn:hover {
  background: var(--accent-dark);
  color:      #fff;
}

/* Selitysteksti lomakkeen alla */
.form-note {
  font-size:  0.82rem;
  color:      var(--text-muted);
  margin-top: 0;
}

/* --- Alatunniste --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding:    2.5rem 0;
}

.footer-inner {
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.75rem 2.5rem;
  align-items: baseline;
  font-size:   0.85rem;
  color:       var(--text-muted);
}

.footer-inner a {
  color:           var(--text-muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}

/* Kielenvalinta alatunnisteessa */
.footer-lang {
  display:    flex;
  gap:        0.75rem;
  list-style: none;
}

.footer-lang a[aria-current="page"] {
  font-weight: 600;
  color:       var(--text);
}

.footer-sep {
  color: var(--border);
}

/* --- Mobiiliasettelu (max 600 px) --- */
@media (max-width: 600px) {
  :root {
    --padding-x:   1rem;
    --section-gap: 2.75rem;
  }

  html {
    font-size: 17px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .hero-values {
    flex-direction: column;
    gap:            0.4rem;
  }

  .footer-inner {
    flex-direction: column;
    gap:            0.6rem;
  }
}

/* --- Tulostusnäkymä --- */
@media print {
  .site-header,
  .site-footer,
  .contact-form,
  .lang-nav {
    display: none;
  }
}
