/*
Theme Name: Syvinvointi 3C – yksinkertainen
Theme URI: https://syvinvointi.fi/
Author: Syvinvointi Oy
Description: Syvinvoinnin väliaikainen, yhden näkymän 3C-WordPress-teema.
Version: 2.0.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: syvinvointi-3c
*/

:root {
  --spruce: #183724;
  --night: #20281b;
  --rust: #9a5220;
  --cream: #ebe4d5;
}

* { box-sizing: border-box; }
html { background: var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--rust); color: var(--cream); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  overflow: visible;
  background: var(--cream);
  color: var(--night);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: 53% center;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(24, 55, 36, 0.99) 0%, rgba(24, 55, 36, 0.94) 39%, rgba(24, 55, 36, 0.42) 64%, rgba(32, 40, 27, 0.1) 100%),
    linear-gradient(0deg, rgba(22, 31, 21, 0.58) 0%, transparent 50%);
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.35rem, 4.6vw, 5.5rem);
}

body.admin-bar .site-header { top: 32px; }

.brand {
  display: block;
  width: clamp(13rem, 19vw, 22rem);
  height: auto;
}

.hero__content {
  width: min(57rem, 70vw);
  padding: clamp(12.5rem, 27vh, 19rem) 0 clamp(8rem, 13vh, 10rem) clamp(1.35rem, 7.5vw, 9rem);
}

.eyebrow,
.contact-link {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: clamp(0.64rem, 0.75vw, 0.78rem);
  font-weight: 700;
}

.eyebrow::before {
  width: 2.6rem;
  height: 2px;
  flex: 0 0 auto;
  content: "";
  background: var(--rust);
}

.hero h1 {
  max-width: 54rem;
  margin: clamp(3rem, 5.5vh, 4.5rem) 0 1.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 44rem;
  margin: 0 0 2rem;
  color: rgba(235, 228, 213, 0.86);
  font-size: clamp(1.06rem, 1.35vw, 1.35rem);
  line-height: 1.55;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 44rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid currentColor;
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: gap 180ms ease, color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  gap: 1.2rem;
  color: #fff;
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  .hero__image { object-position: 64% center; }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(24, 55, 36, 0.88) 0%, rgba(24, 55, 36, 0.72) 45%, rgba(22, 31, 21, 0.8) 100%),
      linear-gradient(90deg, rgba(24, 55, 36, 0.88) 0%, rgba(24, 55, 36, 0.18) 100%);
  }

  .site-header { padding: 1.5rem 1.35rem; }
  .brand { width: min(66vw, 16.5rem); }

  .hero__content {
    width: 100%;
    padding: clamp(10.5rem, 22vh, 13rem) 1.35rem 8rem;
  }

  .hero h1 {
    max-width: 34rem;
    margin-top: 2.8rem;
    font-size: clamp(2.3rem, 11vw, 3.6rem);
    line-height: 1.01;
  }

  .hero__lead {
    max-width: 34rem;
    font-size: 1.02rem;
    line-height: 1.48;
  }

}

@media (max-height: 760px) and (min-width: 761px) {
  .hero__content { padding-top: 10.5rem; padding-bottom: 6.5rem; }
  .hero h1 { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-link { transition: none; }
}
