/*
Theme Name: GridFreeHome Child
Theme URI: https://gridlesshouse.com
Description: GridFreeHome branding and homepage design on Kadence.
Author: GridFreeHome
Template: kadence
Version: 1.0.0
Text Domain: gridfreehome-child
*/

:root {
  --gh-ink: #0d1f19;
  --gh-bg: #f6faf8;
  --gh-card: #ffffff;
  --gh-accent: #0e7a55;
  --gh-accent-dark: #0a5c40;
  --gh-accent-bright: #34d399;
  --gh-muted: #5b6f66;
  --gh-line: #e2ebe6;
}

/* ---------- byline: author + dates hidden (alias author pending) ---------- */
.entry-meta .posted-by,
.entry-meta .posted-on,
.post .entry-header .posted-by,
.post .entry-header .posted-on { display: none !important; }

/* ---------- homepage ---------- */
.gh-home { background: var(--gh-bg); color: var(--gh-ink); }

.gh-hero {
  background: radial-gradient(1200px 500px at 80% -10%, #134534 0%, #0a201a 55%, #081a14 100%);
  color: #f2faf6;
  padding: 84px 24px 76px;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 0 0 28px 28px;
}
.gh-kicker {
  color: var(--gh-accent-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.gh-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 720px;
  color: #ffffff !important; /* parent theme colors h1 dark; force bright on dark hero */
}
.gh-lede {
  font-size: 18px;
  line-height: 1.65;
  color: #c4d8cf;
  max-width: 680px;
  margin: 0 0 30px;
}
.gh-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.gh-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.gh-btn:hover { transform: translateY(-1px); }
.gh-btn-primary { background: var(--gh-accent-bright); color: #06231a; }
.gh-btn-primary:hover { background: #4ade80; }
.gh-btn-ghost { border: 1.5px solid rgba(196, 216, 207, .45); color: #e8f4ee; }
.gh-btn-ghost:hover { border-color: var(--gh-accent-bright); }
.gh-btn-line { border: 1.5px solid var(--gh-accent); color: var(--gh-accent-dark); padding: 10px 18px; font-size: 14px; }
.gh-btn-line:hover { background: var(--gh-accent); color: #fff; }

.gh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: -34px auto 0;
  padding: 0 24px;
  position: relative;
}
.gh-stats div {
  background: var(--gh-card);
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(13, 31, 25, .06);
}
.gh-stats strong { display: block; font-size: 30px; font-weight: 800; color: var(--gh-accent-dark); }
.gh-stats span { font-size: 13px; color: var(--gh-muted); }

.gh-topics, .gh-start, .gh-how { max-width: 1080px; margin: 64px auto; padding: 0 24px; }
.gh-topics h2, .gh-start h2, .gh-how h2, .gh-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 8px;
}
.gh-cta h2 { color: #ffffff !important; }
.gh-cta p { color: #d3e4dc; }
.gh-section-sub { color: var(--gh-muted); font-size: 16px; margin: 0 0 28px; }

.gh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.gh-card {
  background: var(--gh-card);
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--gh-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.gh-card:hover {
  border-color: var(--gh-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(13, 31, 25, .08);
}
.gh-card strong { font-size: 17px; font-weight: 800; }
.gh-card span { font-size: 14px; line-height: 1.5; color: var(--gh-muted); flex: 1; }
.gh-card em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gh-accent); }

.gh-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: pick; }
.gh-picks li { counter-increment: pick; }
.gh-picks a {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--gh-card);
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--gh-ink);
  transition: border-color .15s ease, transform .15s ease;
}
.gh-picks a:hover { border-color: var(--gh-accent); transform: translateX(3px); }
.gh-picks a::before {
  content: counter(pick, decimal-leading-zero);
  font-size: 22px;
  font-weight: 800;
  color: var(--gh-accent);
  line-height: 1.2;
  min-width: 34px;
}
.gh-picks h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.gh-picks p { margin: 0; font-size: 14px; color: var(--gh-muted); line-height: 1.5; }

.gh-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gh-how-grid div { background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: 16px; padding: 24px 22px; }
.gh-how-grid strong { display: block; font-size: 17px; margin-bottom: 10px; }
.gh-how-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gh-muted); }

.gh-cta {
  background: linear-gradient(120deg, #0a201a 0%, #0e3a2b 100%);
  color: #f2faf6;
  text-align: center;
  padding: 64px 24px;
  margin: 72px 0 0;
}
.gh-cta h2 { color: #fff; }
.gh-cta p { color: #c4d8cf; margin: 0 0 26px; }

/* ---------- articles index template ---------- */
.gh-articles { background: var(--gh-bg); padding: 24px 0 64px; }
.gh-articles .gh-container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.gh-post-row {
  background: var(--gh-card);
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 14px;
}
.gh-post-row h2 { margin: 0 0 8px; font-size: 20px; }
.gh-post-row h2 a { color: var(--gh-ink); text-decoration: none; }
.gh-post-row h2 a:hover { color: var(--gh-accent); }
.gh-post-excerpt { font-size: 15px; color: var(--gh-muted); line-height: 1.6; margin: 0 0 14px; }
.gh-articles .navigation, .gh-articles .nav-links { margin-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 782px) {
  .gh-stats { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .gh-how-grid { grid-template-columns: 1fr; }
  .gh-hero { padding: 60px 20px 56px; }
}

/* ---------- footer legal links ---------- */
.gh-legal {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  font-size: 13px;
}
.gh-legal a { color: #9db5ab; text-decoration: none; }
.gh-legal a:hover { color: var(--gh-accent-bright, #34d399); }
