/*
Theme Name: Workouts Journal
Theme URI: https://aleksikoskinen.fi/workoutsjournal/
Author: Aleksi Koskinen
Description: Dedicated responsive presentation theme for the Workouts Journal mobile application.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: workouts-journal
*/

:root {
  --wj-green: #08ad19;
  --wj-green-dark: #006d22;
  --wj-green-soft: #eaf9ed;
  --wj-ink: #132017;
  --wj-muted: #5b685f;
  --wj-border: #dce6df;
  --wj-surface: #ffffff;
  --wj-page: #f4f8f5;
  --wj-shadow: 0 18px 50px rgba(0, 73, 24, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--wj-ink);
  background: var(--wj-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--wj-green-dark); }

img { max-width: 100%; height: auto; }

.wj-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.wj-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  background: rgba(0, 109, 34, .94);
  backdrop-filter: blur(12px);
}

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

.wj-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.wj-brand img { width: 44px; height: 44px; border-radius: 11px; }

.wj-nav { display: flex; align-items: center; gap: 24px; }
.wj-nav a { color: #fff; font-weight: 650; text-decoration: none; }
.wj-nav a:hover, .wj-nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.wj-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(0,42,16,.92), rgba(0,109,34,.68)),
    url("assets/images/hero.jpg") center 45% / cover no-repeat;
}

.wj-hero::after {
  position: absolute;
  inset: auto -12% -42% 32%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: rgba(0, 235, 78, .13);
  content: "";
}

.wj-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 72px;
  padding-block: 88px;
}

.wj-kicker {
  margin: 0 0 12px;
  color: #baf7c8;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wj-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.wj-lead {
  max-width: 690px;
  margin: 28px 0 32px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.wj-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.wj-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--wj-green-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.wj-button-secondary { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.wj-button:hover { transform: translateY(-2px); }

.wj-phone {
  justify-self: center;
  width: 265px;
  padding: 12px;
  border: 5px solid rgba(255,255,255,.78);
  border-radius: 38px;
  background: #111;
  box-shadow: 0 35px 80px rgba(0,0,0,.38);
  transform: rotate(3deg);
}

.wj-phone img { display: block; width: 100%; border-radius: 24px; }

.wj-section { padding-block: 96px; }
.wj-section-white { background: var(--wj-surface); }

.wj-section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.wj-section-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.04em; }
.wj-section-heading p { margin: 0; color: var(--wj-muted); font-size: 1.08rem; }

.wj-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wj-benefit {
  min-height: 180px;
  padding: 28px;
  border: 1px solid var(--wj-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,73,24,.05);
}

.wj-benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--wj-green-soft);
  color: var(--wj-green-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.wj-benefit h3 { margin: 0 0 7px; font-size: 1.08rem; }
.wj-benefit p { margin: 0; color: var(--wj-muted); font-size: .96rem; }

.wj-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.wj-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--wj-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--wj-shadow);
}

.wj-shot-image { min-height: 420px; display: grid; place-items: center; padding: 26px; background: linear-gradient(145deg, #eaf9ed, #f8fbf9); }
.wj-shot-image img { width: 205px; max-height: 430px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.17)); }
.wj-shot figcaption { padding: 22px 24px 26px; color: var(--wj-muted); }
.wj-shot strong { display: block; margin-bottom: 5px; color: var(--wj-ink); font-size: 1.08rem; }

.wj-cta {
  padding-block: 76px;
  color: #fff;
  background: linear-gradient(120deg, var(--wj-green-dark), #00a532);
  text-align: center;
}

.wj-cta h2 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.wj-cta p { max-width: 650px; margin: 0 auto 26px; color: rgba(255,255,255,.85); }

.wj-content { min-height: 65vh; padding-block: 72px; }
.wj-content article { max-width: 820px; margin: auto; padding: 38px; border: 1px solid var(--wj-border); border-radius: 20px; background: #fff; }
.wj-content h1 { margin-top: 0; }

.wj-legal-meta {
  margin: -8px 0 30px;
  color: var(--wj-muted);
  font-size: .94rem;
}

.wj-legal-section + .wj-legal-section { margin-top: 34px; }
.wj-legal-section h2 { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.25; }
.wj-legal-section h3 { margin: 24px 0 8px; font-size: 1.08rem; }
.wj-legal-section p { margin: 0 0 14px; }
.wj-legal-section ul, .wj-legal-section ol { margin: 10px 0 16px; padding-left: 24px; }
.wj-legal-section li + li { margin-top: 7px; }

.wj-notice {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--wj-green);
  border-radius: 10px;
  background: var(--wj-green-soft);
}

.wj-notice p:last-child { margin-bottom: 0; }

.wj-contact-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--wj-border);
  border-radius: 16px;
  background: #f8fbf9;
}

.wj-contact-card h2, .wj-contact-card h3 { margin-top: 0; }
.wj-contact-card .wj-button { background: var(--wj-green-dark); color: #fff; box-shadow: none; }

.wj-steps { counter-reset: wj-step; padding-left: 0 !important; list-style: none; }
.wj-steps li { position: relative; min-height: 42px; padding-left: 52px; }
.wj-steps li::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wj-green-soft);
  color: var(--wj-green-dark);
  font-weight: 850;
  counter-increment: wj-step;
  content: counter(wj-step);
}

.wj-site-footer { padding-block: 42px; color: rgba(255,255,255,.72); background: #07130b; }
.wj-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wj-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.wj-footer-links a { color: #fff; text-decoration: none; }

@media (max-width: 850px) {
  .wj-hero-grid { grid-template-columns: 1fr; gap: 46px; text-align: center; }
  .wj-lead { margin-inline: auto; }
  .wj-actions { justify-content: center; }
  .wj-phone { width: 235px; }
  .wj-benefits, .wj-screenshots { grid-template-columns: repeat(2, 1fr); }
  .wj-nav { display: none; }
}

@media (max-width: 560px) {
  .wj-container { width: min(100% - 28px, 1120px); }
  .wj-header-inner { min-height: 64px; }
  .wj-brand { font-size: 1rem; }
  .wj-brand img { width: 38px; height: 38px; }
  .wj-hero { min-height: auto; }
  .wj-hero-grid { padding-block: 68px; }
  .wj-hero h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .wj-benefits, .wj-screenshots { grid-template-columns: 1fr; }
  .wj-section { padding-block: 70px; }
  .wj-shot-image { min-height: 390px; }
  .wj-footer-inner { align-items: flex-start; flex-direction: column; }
  .wj-content article { padding: 24px; }
}
