/* ════════════════════════════════════════════════════════
   Grounded Parenting — Shared Stylesheet
   groundedparenting.co.uk
   Revised: brighter warmer palette
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Jost:wght@300;400;500&display=swap');

:root {
  --green:        #1A7A4A;   /* brighter, more yellow-green */
  --green-deep:   #0F5C35;
  --teal:         #1FAD70;   /* warmer, brighter teal */
  --teal-warm:    #178A58;
  --teal-light:   #DFF5EC;
  --sage:         #CCE9D8;   /* guide card headers */
  --sage-deep:    #2D7A52;
  --gold:         #D4A017;   /* richer, more saturated gold */
  --gold-light:   #FEF3D0;
  --cream:        #FFFAF0;   /* warm glowing cream */
  --linen:        #FFF4E0;   /* alternate sections */
  --parchment:    #FAEBD7;
  --charcoal:     #181410;
  --warmgrey:     #3A3028;
  --muted:        #5A4E46;
  --border:       #D4C8BC;
  --border-light: #E0D6CC;
  --white:        #FFFDF8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--green);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 500; font-family: 'Jost', sans-serif; letter-spacing: 0.01em; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--teal); }
strong { font-weight: 500; }

.serif   { font-family: 'Cormorant Garamond', serif; }
.italic  { font-style: italic; }
.centre  { text-align: center; }
.teal    { color: var(--teal); }
.warmgrey{ color: var(--warmgrey); }
.small   { font-size: 0.9rem; }

.eyebrow {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #1A7A4A; margin-bottom: 1rem; display: block;
}
.rule { width: 56px; height: 2px; background: var(--teal); border: none; margin: 1.5rem auto; }
.rule--left { margin-left: 0; }

.container        { max-width: 900px;  margin: 0 auto; padding: 0 2rem; }
.container--wide  { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container--narrow{ max-width: 680px;  margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }

/* NAV */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,252,245,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-style: italic; font-weight: 600;
  color: var(--green); text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warmgrey); transition: color 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 0.9rem 2.2rem;
  font-family: 'Jost', sans-serif; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.btn--green         { background: var(--green);      color: var(--cream); border: 1px solid var(--green); }
.btn--green:hover   { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.btn--outline       { background: transparent;       color: var(--green); border: 1px solid var(--green); }
.btn--outline:hover { background: var(--green);      color: var(--cream); }
.btn--cream         { background: var(--cream);       color: var(--green); border: 1px solid var(--cream); }
.btn--cream:hover   { background: transparent;        color: var(--cream); border-color: var(--cream); }
.btn--outline-cream { background: transparent; color: rgba(255,250,240,0.9); border: 1px solid rgba(255,250,240,0.45); }
.btn--outline-cream:hover { background: rgba(255,250,240,0.12); color: var(--cream); border-color: rgba(255,250,240,0.75); }
.btn--gold          { background: var(--gold); color: var(--cream); border: 1px solid var(--gold); }
.btn--gold:hover    { background: #B8880F; color: var(--cream); }
.btn--full { display: block; text-align: center; }

/* PAGE HERO */
.page-hero .eyebrow { color: #FFF8EE !important; opacity: 1; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.18em; }
.page-hero {
  background: #8BAF8E; padding: 5rem 2rem 4rem;
  color: #FFFFFF; position: relative; overflow: hidden;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { color: #FFFFFF !important; margin-bottom: 1rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.page-hero p  { color: #FFFFFF; max-width: 580px; font-size: 1.05rem; line-height: 1.85; font-weight: 400; text-shadow: 0 1px 2px rgba(0,0,0,0.12); }

/* BLOCKQUOTE */
blockquote {
  padding: 1.5rem 2rem; margin: 2rem 0;
  border-left: 3px solid var(--teal);
  background: var(--teal-light); border-radius: 0 2px 2px 0;
}
blockquote p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  font-style: italic; color: var(--green); line-height: 1.65; margin: 0; font-weight: 500;
}

/* GUIDE CARDS */
.guides-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.guide-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 3px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(26,122,74,0.14); }
.guide-card-header { padding: 1.75rem 2rem 1.5rem; background: #C8E6CB; border-bottom: 3px solid #1A7A4A; }
.guide-label { font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase; color: #1A7A4A; margin-bottom: 0.6rem; display: block; }
.guide-card h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.guide-subtitle { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.95rem; color: var(--warmgrey); }
.guide-card-body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.guide-card-body > p { font-size: 0.95rem; color: var(--warmgrey); line-height: 1.75; flex: 1; }
.guide-meta { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; margin: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guide-price { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--green); font-weight: 600; }
.guide-format { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ARTICLE CARDS */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.article-card {
  padding: 1.75rem; background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--teal); border-radius: 0 3px 3px 0;
  transition: border-left-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none; display: block;
}
.article-card:hover { border-left-color: var(--green); background: var(--teal-light); transform: translateX(3px); }
.article-card h4 { font-size: 1.1rem; color: var(--green); margin-bottom: 0.5rem; font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.article-card p  { font-size: 0.92rem; color: var(--warmgrey); line-height: 1.7; margin: 0; }
.article-card .article-series-tag { font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 500; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; display: block; }

/* SERIES FEATURE */
.series-feature { padding: 2.5rem; background: var(--gold-light); border: 1px solid var(--gold); border-radius: 3px; margin-top: 2rem; }
.series-feature h3 { margin-bottom: 0.5rem; }
.series-feature > p { font-size: 0.95rem; color: var(--warmgrey); margin-bottom: 1.5rem; }
.series-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.5rem; list-style: none; }
.series-parts li { font-size: 0.92rem; color: var(--warmgrey); padding-left: 1.1rem; position: relative; }
.series-parts li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }

/* ARTICLE PAGE */
.article-body { max-width: 680px; margin: 0 auto; padding: 4rem 2rem; }
.article-body h2 { font-size: 1.65rem; color: var(--green); margin: 2.5rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--border); font-weight: 600; }
.article-body h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.article-body p { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.2rem; }
.article-body .vignette { padding: 1.5rem 1.75rem; border-left: 3px solid var(--teal); background: var(--teal-light); margin: 2rem 0; font-style: italic; color: var(--warmgrey); border-radius: 0 3px 3px 0; font-size: 1rem; line-height: 1.8; }
.article-meta { font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); letter-spacing: 0.02em; }
.article-series-banner { padding: 1.1rem 1.5rem; background: var(--teal-light); border: 1px solid var(--teal); border-radius: 3px; margin-bottom: 2rem; font-size: 0.9rem; color: var(--warmgrey); line-height: 1.6; }
.article-series-banner a { color: var(--teal-warm); font-weight: 500; }

/* Q&A PAGE */
.qa-item { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: none; }
.qa-question { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--green); margin-bottom: 1rem; line-height: 1.35; }
.qa-question::before { content: 'Q  '; color: var(--gold); font-style: italic; }
.qa-answer { font-size: 1rem; line-height: 1.85; color: var(--charcoal); }
.qa-answer p { margin-bottom: 0.9rem; }
.qa-meta { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; letter-spacing: 0.04em; }

/* FORM */
.gp-form { display: flex; flex-direction: column; gap: 1.2rem; }
.gp-form label { font-size: 0.85rem; font-weight: 500; color: var(--warmgrey); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.3rem; display: block; }
.gp-form input, .gp-form textarea, .gp-form select {
  width: 100%; padding: 0.9rem 1.1rem;
  border: 1px solid var(--border); border-radius: 2px;
  font-family: 'Jost', sans-serif; font-size: 1rem; color: var(--charcoal);
  background: var(--white); transition: border-color 0.2s;
  -webkit-appearance: none;
}
.gp-form input:focus, .gp-form textarea:focus, .gp-form select:focus {
  outline: none; border-color: var(--teal);
}
.gp-form textarea { min-height: 120px; resize: vertical; }

/* FOOTER */
.site-footer { background: #5A7A5C; color: #FFFFFF; padding: 4.5rem 2rem 2rem; }
.footer-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; font-weight: 600; color: #FFFFFF; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.75); font-style: italic; }
.footer-col h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: #D4A017; margin-bottom: 1.1rem; font-family: 'Jost', sans-serif; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.85); transition: color 0.2s; text-decoration: none; }
.footer-col ul li a:hover { color: #FFFFFF; }
.footer-bottom { max-width: 900px; margin: 0 auto; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* FADE */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .guides-grid  { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .series-parts { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  body          { font-size: 1rem; }
}

/* BACK TO TOP */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; background: var(--green); color: var(--cream);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 16px rgba(26,122,74,0.3);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none; z-index: 200; text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--green-deep); color: var(--cream); }

/* Green-toned credential / info boxes */
.green-box {
  background: #C8E6CB;
  border: 1px solid #8BAF8E;
  border-left: 4px solid #1A7A4A;
  border-radius: 3px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}
.green-box p { color: #1A3A28; margin: 0; }
