/*
Theme Name: Thyself (GeneratePress Child)
Theme URI: https://thyself.help
Description: Child theme for thyself.help. Requires the GeneratePress parent theme.
Author: thyself.help
Template: generatepress
Version: 1.0.0
Text Domain: thyself-child
*/

:root {
  --th-ink: #0E1411;
  --th-paper: #FBFBF9;
  --th-green: #0F5132;
  --th-lime: #D9F27A;
  --th-mist: #EEF1EA;
  --th-line: #CDD3CB;
  --th-soft: #3B443F;
  --th-muted: #55605A;
  --th-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --th-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
body {
  background: var(--th-paper);
  color: var(--th-ink);
  font-family: var(--th-body);
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--th-display); color: var(--th-ink); }
a { color: var(--th-ink); }
a:hover, a:focus { color: var(--th-green); }

/* ---------- GeneratePress header ---------- */
.site-header { background: var(--th-paper); border-bottom: 1px solid #E1E4DD; }
.inside-header { padding: 18px 32px; }
.main-title { font-family: var(--th-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.main-title a, .main-title a:hover { color: var(--th-ink); text-decoration: none; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle { color: var(--th-ink); font-size: 15px; font-weight: 500; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--th-green); background: transparent; }
@media (min-width: 769px) {
  .main-navigation .main-nav > ul > li:last-child > a {
    background: var(--th-ink); color: var(--th-paper);
    border-radius: 999px; line-height: 44px; padding: 0 22px; margin: 8px 0 8px 12px;
  }
  .main-navigation .main-nav > ul > li:last-child:hover > a { background: var(--th-green); color: #fff; }
}

/* ---------- Full-width pages ---------- */
body.page #page.grid-container,
body.page .site.grid-container { max-width: 100%; }
body.page .site-content { padding: 0; }
body.page .inside-article { padding: 0; background: transparent; }
body.page .entry-content { margin-top: 0; }
body.page .site-main { margin: 0; }
body.page .entry-content > .wp-block-group { margin-bottom: 0; }

/* ---------- Sections ---------- */
.th-section { padding: 96px 0; margin: 0; }
.th-section-tight { padding: 28px 0; }
.th-wrap { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.th-section p { margin: 0 0 16px; }
.th-section p:last-child { margin-bottom: 0; }
.th-bg-mist { background: var(--th-mist); }
.th-bg-green { background: var(--th-green); color: #fff; }
.th-bg-green h2, .th-bg-green h3 { color: #fff; }
.th-bg-green p { color: #E6F0EA; }
.th-bordered { border-top: 1px solid #E1E4DD; border-bottom: 1px solid #E1E4DD; }

.th-row, .th-row > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 24px; }
.th-row > .wp-block-group__inner-container { flex: 1 1 100%; }
.th-row-wide, .th-row-wide > .wp-block-group__inner-container { gap: 40px 72px; }
.th-row-center, .th-row-center > .wp-block-group__inner-container { align-items: center; }
.th-col { flex: 1 1 240px; min-width: 0; }
.th-col-half { flex: 1 1 380px; min-width: 0; }
.th-col-wide { flex: 999 1 520px; min-width: 0; }
.th-col-2 { flex: 2 1 420px; min-width: 0; }

/* ---------- Type ---------- */
.th-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--th-green); }
.th-bg-green .th-eyebrow, .th-dark .th-eyebrow { color: var(--th-lime); }
.th-h1 { font-weight: 600; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 28px; }
.th-h1 mark { background: var(--th-lime); color: var(--th-ink); padding: 0 8px; border-radius: 6px; }
.th-h2 { font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; }
.th-h2-big { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; }
.th-h3 { font-family: var(--th-body); font-weight: 600; font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.th-lead { font-size: 20px; line-height: 1.5; color: var(--th-soft); max-width: 620px; }
.th-soft { color: var(--th-soft); }
.th-small { font-size: 14px; color: var(--th-muted); }
.th-head { margin-bottom: 48px; max-width: 760px; }
.th-strong { font-weight: 600; color: #fff; }

/* ---------- Buttons ---------- */
.th-section .wp-block-buttons { margin-top: 28px; gap: 16px; align-items: center; }
.th-btn .wp-block-button__link {
  background: var(--th-green); color: #fff; font-weight: 600;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
}
.th-btn .wp-block-button__link:hover { background: var(--th-ink); color: #fff; }
.th-btn-text .wp-block-button__link {
  background: transparent; color: var(--th-ink); font-weight: 600;
  padding: 16px 8px; text-decoration: underline;
}

/* ---------- Cards ---------- */
.th-dark { background: var(--th-ink); color: var(--th-paper); border-radius: 20px; padding: 32px; }
.th-dark h3 { color: var(--th-lime); font-family: var(--th-display); font-size: 26px; }
.th-card-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #2C3530; color: #B9C2BC; }
.th-card-row strong { color: var(--th-paper); font-weight: 600; text-align: right; }
.th-card-row.th-card-total { border-bottom: 0; padding-bottom: 0; align-items: baseline; }
.th-card-row.th-card-total strong { font-family: var(--th-display); font-size: 40px; letter-spacing: -0.02em; color: var(--th-lime); }

.th-step { border-top: 2px solid var(--th-ink); padding-top: 24px; }
.th-num { font-family: var(--th-display); font-weight: 600; font-size: 20px; color: var(--th-green); }

.th-card { background: #fff; border-radius: 16px; padding: 32px; box-sizing: border-box; }
.th-card-green { background: var(--th-green); color: #fff; }
.th-card-green h3 { color: #fff; font-family: var(--th-display); font-size: 30px; letter-spacing: -0.02em; }
.th-card-green p { color: #DCE9E1; }
.th-card-dashed { background: transparent; border: 1.5px dashed #8A948E; }
.th-card-outline { background: transparent; border: 1px solid var(--th-line); padding: 36px; }
.th-card-outline h3, .th-you-us h3 { font-family: var(--th-display); font-size: 26px; }
.th-tag { display: inline-block; background: var(--th-lime); color: var(--th-ink) !important; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

.th-line { padding: 0 0 14px; border-bottom: 1px solid #E1E4DD; }
.th-dark .th-line { border-bottom-color: #2C3530; }
.th-line.th-line-last { border-bottom: 0; padding-bottom: 0; }

.th-item { padding: 24px 0; border-top: 1px solid var(--th-line); }
.th-item-last { border-bottom: 1px solid var(--th-line); }

.th-proof { border: 1.5px dashed #8A948E; border-radius: 16px; padding: 40px; }
.th-proof-title { font-family: var(--th-display); font-weight: 600; font-size: 26px; line-height: 1.2; }

.th-faq { flex: 1 1 440px; min-width: 0; background: #fff; border-radius: 16px; padding: 28px 32px; box-sizing: border-box; }
.th-faq h3 { font-size: 19px; }

/* ---------- Application form ---------- */
.th-form { background: #fff; border: 1px solid var(--th-line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.th-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.th-form input[type="url"], .th-form input[type="email"], .th-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; padding: 14px 16px; min-height: 48px;
  border: 1px solid #8A948E; border-radius: 10px; background: var(--th-paper); color: var(--th-ink);
}
.th-form button {
  font: inherit; font-weight: 600; background: var(--th-green); color: #fff; border: 0;
  padding: 16px 28px; border-radius: 999px; cursor: pointer; min-height: 52px;
}
.th-form button:hover { background: var(--th-ink); }
.th-form .th-hp { position: absolute; left: -9999px; }
.th-form-ok { background: var(--th-lime); border-radius: 16px; padding: 24px 28px; font-weight: 600; }

/* ---------- Footer ---------- */
.th-footer { background: var(--th-ink); color: #B9C2BC; padding: 64px 0 40px; }
.th-footer-inner { display: flex; flex-wrap: wrap; gap: 32px 72px; justify-content: space-between; }
.th-footer-brand { font-family: var(--th-display); font-weight: 700; font-size: 24px; color: var(--th-paper); letter-spacing: -0.02em; }
.th-footer-brand span { color: var(--th-lime); }
.th-footer p { margin: 12px 0 0; max-width: 320px; font-size: 15px; }
.th-footer nav { display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 15px; max-width: 420px; }
.th-footer nav a { color: var(--th-paper); text-decoration: none; padding: 8px 0; }
.th-footer nav a:hover { color: var(--th-lime); }
.site-info { background: var(--th-ink); color: #B9C2BC; font-size: 14px; border-top: 1px solid #2C3530; }
.site-info a { color: var(--th-paper); }

@media (max-width: 768px) {
  .th-section { padding: 64px 0; }
  .th-wrap { padding-left: 20px; padding-right: 20px; }
  .inside-header { padding: 14px 20px; }
}
