/* Finnide
   Shared stylesheet for index.html and fi.html.
   Keep layout, accessibility and responsive rules here. */

/* 1. Theme — shared navy palette for English and Finnish. */
:root {
  --ink: #1d324d;
  --muted: #536479;
  --accent: #255d98;
  --hero: #182f4d;
  --hero-text: #d7e3f1;
  --highlight: #aecff4;
  --paper: #ffffff;
  --soft: #f0f4f9;
  --line: #d9e1eb;
  --content-width: 1140px;
}

/* 2. Base styles, typography and accessible links. */
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, p {
  margin-top: 0;
}

p {
  margin-bottom: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: 3px solid #b97528;
  outline-offset: 5px;
}

/* Shared page width. */
.container {
  width: min(var(--content-width), calc(100% - 96px));
  margin-inline: auto;
}

/* Keyboard skip link, revealed when focused. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

/* 3. Header and main navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 90px;
}

.brand {
  white-space: nowrap;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.brand-mark {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-contact {
  gap: 22px;
  padding: 7px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.nav-contact:hover {
  background: var(--soft);
  text-decoration: none;
}

/* 4. Home section. */
.hero {
  background: var(--hero);
  color: white;
}

.eyebrow {
  margin-bottom: 21px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
}

h1 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -2.3px;
}

h1 span {
  color: var(--highlight);
}

.hero-description {
  color: var(--hero-text);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-light:hover {
  background: var(--highlight);
  text-decoration: none;
}

/* Shared section spacing. */
.section {
  padding-block: 80px;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -1.3px;
}

h3 {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

/* 5. About section background. */
.about {
  background: var(--soft);
}

/* 6. Contact section. */
.contact {
  background: var(--hero);
  color: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
}

.contact .eyebrow {
  color: var(--highlight);
}

.contact-details {
  padding-top: 7px;
}

.contact-details dl {
  margin: 24px 0;
}

.contact-details dl > div {
  border-top: 1px solid #435d7d;
  padding-block: 14px;
}

.contact-details dt {
  font-size: 12px;
  color: var(--hero-text);
}

.contact-details dd {
  margin: 3px 0 0;
  font-size: 17px;
}

.placeholder {
  color: #e4d7b5;
}

/* 7. Footer. */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}

.footer-inner .brand {
  font-size: 24px;
}

.footer-inner p, .footer-domain {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive layout — tablet. */
@media (max-width: 950px) {
  .container {
    width: calc(100% - 48px);
  }

  .contact-layout {
    gap: 45px;
  }
}

/* Responsive layout — phone. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 134px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding-block: 12px;
  }

  .brand {
    font-size: 26px;
  }

  nav {
    justify-content: center;
    width: 100%;
    gap: 26px;
    font-size: 13px;
  }

  .nav-contact {
    border: 0;
    padding-inline: 0;
    gap: 8px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  h1 {
    font-size: clamp(39px, 8.8vw, 56px);
    letter-spacing: -1.6px;
  }

  .hero-description {
    font-size: 19px;
  }

  .section {
    padding-block: 52px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .footer-domain {
    width: 100%;
  }
}

/* Home layout — one left-aligned content block. */
.home-simple {
  padding: 100px 0 110px;
  text-align: left;
}

.home-simple .home-content {
  max-width: 760px;
  margin: 0;
}

.home-simple h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  margin-bottom: 0;
}

.home-simple .hero-description {
  max-width: 510px;
  margin: 28px 0 34px;
  font-size: 20px;
}

/* Responsive layout — phone. */
@media (max-width: 700px) {
  .home-simple {
    padding: 62px 0 68px;
  }

  .home-simple h1 {
    font-size: clamp(39px, 9vw, 56px);
  }
}

.services-heading > p {
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 0;
}

.service-area h3 {
  font-size: 23px;
  margin-bottom: 14px;
}

.service-area p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}

/* 8. Services — centered introduction and four open columns. */
.services-heading {
  max-width: 720px;
  margin-bottom: 48px;
  text-align: center;
  margin-inline: auto;
}

.service-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-area {
  min-width: 0;
  padding: 16px 25px;
  border-right: 1px solid var(--line);
}

.service-area:first-child {
  padding-left: 0;
}

.service-area:last-child {
  padding-right: 0;
  border-right: 0;
}

/* Responsive layout — tablet. */
@media (max-width: 950px) {
  .service-areas {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .service-area, .service-area:first-child, .service-area:last-child {
    padding: 0;
    border: 0;
  }
}

/* Services — stack into one column. */
@media (max-width: 600px) {
  .service-areas {
    grid-template-columns: 1fr;
  }

  .services-heading {
    text-align: left;
  }

  .service-area {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

/* 9. Founder story — readable prose and a small section heading. */
.about-story {
  max-width: 760px;
}

.about-story h2.eyebrow {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 1.8px;
  margin-bottom: 21px;
}

.about-story .story-lead {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
}

.about-story .story-body {
  max-width: 680px;
  color: var(--muted);
}

/* 10. Language selector — underline the current language. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.language-switch a {
  justify-content: center;
  min-width: 28px;
}

.language-switch a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Narrow phones — allow navigation to wrap. */
@media (max-width: 420px) {
  .site-header nav {
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 0;
  }

  html {
    scroll-padding-top: 180px;
  }
}

/* Founder website link — smaller than the introduction. */
.about-story .founder-link {
  display: inline-block;
  padding-block: 7px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.about-story .founder-link:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

