/*
Theme Name: Fitalio
Theme URI: https://fitalio.com
Author: Fitalio
Author URI: https://fitalio.com
Description: Marketingthema voor de Fitalio-app — een rustige, motiverende beweeg- en voedingscoach met circles om elkaar uit te dagen. Eén-pagina landingssite die app-downloads stimuleert, in de Fitalio-huisstijl. Download-links en teksten zijn instelbaar via de Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitalio
Tags: landing-page, one-column, custom-colors, custom-menu, translation-ready
*/

/* ============================ Design tokens (huisstijl) ============================ */
:root {
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --soft: #EAF6EF;
  --mint: #D8EEE2;
  --sun-soft: #FDF1DA;
  --warm-soft: #FCEAE0;
  --forest: #1E3A2E;
  --leaf: #2FA46C;
  --leaf-light: #4FD08C;
  --terracotta: #E97A4F;
  --sun: #F2B441;
  --bark: #2C2A26;
  --body: #5C544A;
  --muted: #8A7E6C;
  --border: #ECE0CE;
  --border-soft: #F4E9D8;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-round: 999px;

  --shadow-sm: 0 2px 10px rgba(44, 42, 38, 0.05);
  --shadow: 0 18px 44px rgba(30, 58, 46, 0.10);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================ Reset / base ============================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--bark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; }
a:hover { color: var(--forest); }
h1, h2, h3 { color: var(--forest); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1rem; color: var(--body); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--leaf); margin-bottom: 12px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--body); max-width: 40ch; }
.section { padding: 72px 0; }
.section--tint { background: var(--soft); }
.section--warm { background: var(--sun-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-round);
  font-weight: 800; font-size: 1rem; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: var(--white); box-shadow: 0 10px 24px rgba(47,164,108,.28); }
.btn-primary:hover { background: #2b9863; color: var(--white); }
.btn-ghost { background: var(--surface); color: var(--forest); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--forest); }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: .8; line-height: 1; }
.btn strong { display: block; font-size: 15px; line-height: 1.1; }
.btn-disabled { opacity: .6; cursor: default; }
.btn-disabled:hover { transform: none; }

/* ============================ Header / nav ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--forest); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { color: var(--bark); font-weight: 700; font-size: .95rem; }
.nav a.navlink:hover { color: var(--leaf); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav .navlink { display: none; }
}

/* ============================ Hero ============================ */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(79,208,140,.20), transparent 60%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--forest); }
.trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .trust { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .phone-wrap { margin: 8px auto 0; }
}

/* ============================ Phone mockup ============================ */
.phone-wrap { justify-self: center; }
.phone {
  width: 300px; max-width: 82vw; background: #12241b; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow); position: relative;
}
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #12241b; border-radius: 999px; z-index: 3; }
.phone-screen { background: var(--bg); border-radius: 34px; overflow: hidden; padding: 22px 16px 16px; }
.ps-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--leaf); }
.ps-title { font-size: 1.5rem; font-weight: 800; color: var(--forest); margin: 2px 0 12px; }
.ps-stats { display: flex; gap: 10px; margin-bottom: 12px; }
.ps-stat { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.ps-stat b { display: block; font-size: 1.2rem; color: var(--leaf); }
.ps-stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.ps-card { background: var(--soft); border: 1px solid var(--mint); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.ps-chip { display: inline-block; background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 10px; font-weight: 800; color: var(--forest); }
.ps-week { color: var(--leaf); font-weight: 800; font-size: 11px; margin-bottom: 6px; }
.ps-ex { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-weight: 700; font-size: 13px; color: var(--bark); }
.ps-ex em { font-style: normal; color: var(--leaf); font-size: 12px; }
.ps-coach { background: var(--surface); border: 1px solid var(--mint); border-radius: 16px; padding: 12px; }
.ps-coach b { color: var(--forest); font-size: 12px; }
.ps-coach p { margin: 4px 0 0; font-size: 12px; color: var(--body); }
.ps-tabbar { display: flex; justify-content: space-around; align-items: flex-end; margin: 14px -6px -4px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.ps-tab { font-size: 9px; color: var(--muted); text-align: center; }
.ps-tab.center { color: var(--forest); }
.ps-tab .fab { width: 42px; height: 42px; border-radius: 50%; background: var(--leaf); margin: 0 auto 2px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 14px rgba(47,164,108,.35); }
.ps-tab i { display: block; width: 16px; height: 16px; margin: 0 auto 3px; border-radius: 4px; background: currentColor; opacity: .55; }

/* ============================ Feature cards / USPs ============================ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ic {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: #fff;
}
.ic-leaf { background: var(--leaf); }
.ic-terra { background: var(--terracotta); }
.ic-sun { background: var(--sun); }
.ic-forest { background: var(--forest); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; }
.card .ic svg { width: 24px; height: 24px; }

/* ============================ Circles feature ============================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); border: 1px solid var(--border); }
.feed-title { font-weight: 800; color: var(--forest); }
.feed-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--soft); margin-top: 10px; }
.feed-item .avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; }
.a-leaf { background: var(--leaf); }
.a-terra { background: var(--terracotta); }
.a-sun { background: var(--sun); }
.feed-item b { color: var(--forest); }
.feed-item p { margin: 2px 0 0; font-size: 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; color: var(--forest); }

/* ============================ Steps ============================ */
.steps { counter-reset: step; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--leaf); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

/* ============================ Programs ============================ */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
.prog {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center; font-weight: 800; color: var(--forest);
}
.prog span { display: block; font-size: 26px; margin-bottom: 6px; }
.prog small { display: block; margin-top: 4px; font-weight: 600; color: var(--muted); font-size: 12px; }

/* ============================ Download band ============================ */
.download { background: linear-gradient(135deg, var(--forest), #16302340); }
.download.section { background: var(--forest); }
.download h2, .download p { color: #fff; }
.download p { color: rgba(255,255,255,.85); }
.download .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.download .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ============================ Footer ============================ */
.site-footer { background: var(--forest); color: rgba(255,255,255,.85); padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer a { color: #fff; opacity: .85; }
.site-footer a:hover { opacity: 1; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============================ Generic pages (index/page fallback) ============================ */
.page-content { max-width: 760px; margin: 0 auto; padding: 56px 22px; }
.page-content h1 { margin-bottom: .4em; }
.page-content a { text-decoration: underline; }
