
/*
Theme Name: H2O Job Onepage
Theme URI: https://job.h2osiivous.fi/
Author: OpenAI
Description: Minimal one-page internal workspace theme for H2O Siivous staff.
Version: 1.0.0
Text Domain: h2o-job-onepage
*/

:root {
  --h2o-bg: #f3f8f7;
  --h2o-surface: #ffffff;
  --h2o-surface-soft: #f8fcfb;
  --h2o-border: #d9ebe7;
  --h2o-text: #163744;
  --h2o-muted: #5f7882;
  --h2o-primary: #1f7b96;
  --h2o-primary-dark: #175f74;
  --h2o-accent: #dff5f2;
  --h2o-success: #2f8f72;
  --h2o-danger: #d14b55;
  --h2o-radius-lg: 28px;
  --h2o-radius-md: 18px;
  --h2o-radius-sm: 14px;
  --h2o-shadow: 0 16px 48px rgba(22, 55, 68, 0.08);
  --h2o-shadow-soft: 0 10px 28px rgba(22, 55, 68, 0.06);
  --h2o-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--h2o-text);
  background:
    radial-gradient(circle at top right, rgba(31,123,150,0.12), transparent 24%),
    linear-gradient(180deg, #f8fcfb 0%, #f3f8f7 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text { position:absolute;left:-9999px; }
.site-shell { min-height: 100vh; }
.container {
  width: min(calc(100% - 32px), var(--h2o-width));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(243,248,247,0.8);
  border-bottom: 1px solid rgba(217,235,231,0.8);
}
.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1f7b96 0%, #8ad4dc 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: var(--h2o-shadow-soft);
}
.brand__meta strong {
  display:block;
  font-size: 1rem;
  line-height: 1.1;
}
.brand__meta span {
  display:block;
  color: var(--h2o-muted);
  font-size: .92rem;
  margin-top: 2px;
}
.header-actions { display:flex; align-items:center; gap: 12px; }
.employee-badge {
  display:flex; align-items:center; gap:10px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.82);
  border:1px solid var(--h2o-border);
  color: var(--h2o-muted);
}
.employee-badge strong { color: var(--h2o-text); }
.button,
button.button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-weight: 700;
}
.button:hover, button.button:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
}
.button--primary, button.button--primary, .button-primary {
  color: #fff;
  background: linear-gradient(180deg, #1f7b96 0%, #175f74 100%);
  box-shadow: 0 14px 28px rgba(31,123,150,0.24);
}
.button--ghost {
  color: var(--h2o-text);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--h2o-border);
}
.main-content { padding: 40px 0 56px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: stretch;
}
.hero__main,
.hero__side,
.info-card,
.documents-panel,
.widget-panel,
.notice-panel,
.doc-card,
.empty-state,
.footer-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(217,235,231,.95);
  border-radius: var(--h2o-radius-lg);
  box-shadow: var(--h2o-shadow);
}
.hero__main {
  padding: 34px;
  min-height: 360px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.hero__eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--h2o-accent);
  color: var(--h2o-primary-dark);
  font-size: .9rem;
  font-weight: 700;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  margin: 18px 0 16px;
  letter-spacing: -0.04em;
}
.hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--h2o-muted);
}
.hero__side {
  padding: 28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
}
.side-kicker {
  font-size: .95rem;
  color: var(--h2o-primary-dark);
  font-weight: 700;
}
.side-list {
  display:grid;
  gap: 14px;
}
.side-list__item {
  padding: 16px 18px;
  border-radius: var(--h2o-radius-md);
  background: var(--h2o-surface-soft);
  border: 1px solid var(--h2o-border);
}
.side-list__item strong { display:block; margin-bottom: 6px; }
.side-list__item span { color: var(--h2o-muted); line-height: 1.55; display:block; }
.layout-grid {
  margin-top: 24px;
  display:grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.content-grid {
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
}
.stack { display:grid; gap: 24px; }
.info-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.info-card {
  padding: 24px;
}
.info-card h3, .widget-panel h2, .documents-panel h2, .notice-panel h2 { margin: 0 0 10px; font-size: 1.1rem; }
.info-card p, .widget-panel p, .documents-panel p, .notice-panel p, .doc-card p {
  margin: 0;
  line-height: 1.68;
  color: var(--h2o-muted);
}
.notice-panel,
.widget-panel,
.documents-panel {
  padding: 26px;
}
.section-label {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--h2o-primary-dark);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.widget-placeholder {
  margin-top: 18px;
  min-height: 180px;
  border-radius: 22px;
  border: 1px dashed #9dcfd7;
  background: linear-gradient(180deg, rgba(223,245,242,0.7) 0%, rgba(255,255,255,0.92) 100%);
  display:grid;
  place-items:center;
  text-align:center;
  padding: 24px;
}
.widget-placeholder strong { display:block; margin-bottom: 8px; }
.widget-placeholder .widget-code { margin-top: 16px; width:100%; }
.widget-code textarea {
  width:100%; min-height: 110px; border-radius: 18px; border:1px solid var(--h2o-border); padding:14px; background:#fff;
}
.documents-toolbar {
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
}
.documents-search {
  flex:1 1 240px;
  position:relative;
}
.documents-search input {
  width:100%;
  padding: 15px 18px;
  border-radius: 999px;
  border:1px solid var(--h2o-border);
  background:#fff;
  color: var(--h2o-text);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.02);
}
.documents-filters {
  display:flex; flex-wrap:wrap; gap:8px;
}
.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--h2o-border);
  background: #fff;
  padding: 10px 14px;
  color: var(--h2o-muted);
  font-weight: 700;
}
.filter-chip.is-active {
  background: var(--h2o-accent);
  color: var(--h2o-primary-dark);
  border-color: rgba(31,123,150,.18);
}
.documents-grid {
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.doc-card {
  padding: 22px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.doc-card__top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.doc-badge {
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--h2o-accent);
  color: var(--h2o-primary-dark);
  font-size: .82rem;
  font-weight: 800;
}
.doc-category {
  color: var(--h2o-muted);
  font-size: .84rem;
  font-weight: 700;
}
.doc-card h3 {
  margin:0;
  font-size: 1.08rem;
  line-height: 1.35;
}
.doc-card__content {
  color: var(--h2o-muted);
  line-height: 1.65;
  display: none;
}
.doc-card.is-open .doc-card__content { display:block; }
.doc-card__actions {
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: auto;
}
.doc-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  padding: 11px 16px;
  background: var(--h2o-surface-soft);
  border:1px solid var(--h2o-border);
  font-weight: 700;
}
.doc-link--primary {
  background: var(--h2o-primary);
  color:#fff;
  border-color: transparent;
}
.doc-toggle {
  background: transparent;
  color: var(--h2o-primary-dark);
  padding: 0;
  font-weight: 800;
  border: 0;
}
.doc-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size: .82rem;
  color: var(--h2o-muted);
}
.empty-state {
  padding: 30px;
  text-align:center;
}
.site-footer {
  padding: 0 0 30px;
}
.footer-card {
  padding: 18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  color: var(--h2o-muted);
}
.footer-card strong { color: var(--h2o-text); }

@media (max-width: 1120px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .site-header__inner { min-height: 72px; }
  .header-actions { gap: 8px; }
  .employee-badge { display:none; }
  .hero__main, .hero__side, .notice-panel, .widget-panel, .documents-panel, .info-card, .doc-card { padding: 20px; }
  .info-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }
  .footer-card { flex-direction: column; align-items:flex-start; }
}
