/* ============================================================
   Kerby Konnects — shared stylesheet for multi-page site
   Reuses the existing brand system from index.html / blog.html:
   Cormorant Garamond (serif headings) + Jost (body),
   sage green (#3A6B28) + terracotta (#C96A14) on warm cream.
   Linked by all pages created in the 2026 SEO multi-page build.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #FAF6F0;
  --cream-dark:   #F2EBE0;
  --terracotta:   #C96A14;
  --sage:         #3A6B28;
  --warm-brown:   #2D5220;
  --text-dark:    #1E3A14;
  --text-soft:    #6B8A58;
  --white:        #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(45,82,32,0.08);
  --shadow-warm: 0 8px 40px rgba(196,114,74,0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 660px; margin: 0 auto; padding: 0 2rem; }

/* Balance headline wrapping so short lines don't leave orphan words */
h1, h2, h3, h4 { text-wrap: balance; }

a { color: var(--sage); }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--warm-brown); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Navigation ─────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58,107,40,0.08);
  padding: 0.85rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-home {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600;
  color: var(--warm-brown); text-decoration: none; display: flex; align-items: center; gap: 0.6rem;
}
.nav-home img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--terracotta); }
.nav-cta {
  background: var(--terracotta); color: var(--white) !important;
  padding: 0.55rem 1.25rem; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
}
.nav-cta:hover { background: #b35d10; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 6px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--warm-brown); transition: 0.3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow-warm); }
.btn-primary:hover { transform: translateY(-2px); background: #b35d10; }
.btn-secondary { background: transparent; color: var(--warm-brown); border: 1.5px solid rgba(58,107,40,0.25); }
.btn-secondary:hover { border-color: var(--sage); background: rgba(58,107,40,0.04); }
.btn-white { background: var(--white); color: var(--warm-brown); box-shadow: var(--shadow-card); }
.btn-white:hover { transform: translateY(-2px); }

/* ── Page hero (interior pages) ─────────────────────────── */
.page-hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.page-hero .label, .section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem; display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 600; color: var(--warm-brown);
  line-height: 1.15; margin-bottom: 1.1rem;
}
.page-hero .lead {
  font-size: 1.1rem; color: var(--text-soft);
  max-width: 620px; margin: 0 auto;
}

/* ── Generic section ────────────────────────────────────── */
section { padding: 3rem 0; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600; color: var(--warm-brown); line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--text-soft); max-width: 640px; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Prose / article body ───────────────────────────────── */
.prose { font-size: 1.05rem; color: var(--text-dark); }
.prose p { margin-bottom: 1.25rem; }
.prose h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 600;
  color: var(--warm-brown); line-height: 1.25; margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--sage); margin: 1.75rem 0 0.75rem;
}
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--warm-brown); }
.prose blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.5rem 0 0.5rem 1.25rem; margin: 1.5rem 0;
  font-style: italic; color: var(--text-soft);
}
.prose a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--terracotta); }

/* ── Card grid ──────────────────────────────────────────── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem; margin-top: 2.5rem;
}
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 1.9rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.card h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--warm-brown); margin-bottom: 0.6rem; line-height: 1.25;
}
.card p { font-size: 0.92rem; color: var(--text-soft); flex: 1; }
.card-number {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  color: var(--terracotta); opacity: 0.5; margin-bottom: 0.5rem;
}
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.1rem; font-size: 0.82rem; font-weight: 600;
  color: var(--sage); text-decoration: none; transition: gap 0.2s;
}
.card-link:hover { gap: 0.7rem; color: var(--terracotta); }

/* ── Program cards ──────────────────────────────────────── */
.program-card { border-top: 4px solid var(--sage); }
.program-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.6rem; display: block;
}
.program-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.program-meta span {
  font-size: 0.72rem; font-weight: 600; color: var(--warm-brown);
  background: var(--cream-dark); padding: 0.4rem 0.85rem; border-radius: 100px;
}

/* ── Module list (program pages) ────────────────────────── */
.module-list { counter-reset: mod; margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.module-list li {
  list-style: none; counter-increment: mod;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 1.1rem 1.25rem 1.1rem 3.4rem; position: relative;
}
.module-list li::before {
  content: counter(mod); position: absolute; left: 1.1rem; top: 1.1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--sage); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
}
.module-list strong { display: block; color: var(--warm-brown); margin-bottom: 0.15rem; }
.module-list span { font-size: 0.9rem; color: var(--text-soft); }

/* ── Info / contact list ────────────────────────────────── */
.info-list { display: grid; gap: 1rem; margin: 2rem 0; }
.info-item { display: flex; align-items: center; gap: 0.85rem; font-size: 0.95rem; }
.info-dot {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(196,106,20,0.1); display: flex; align-items: center; justify-content: center;
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band { background: var(--warm-brown); color: var(--white); text-align: center; }
.cta-band h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; margin-bottom: 1rem; color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 1.75rem; }
.cta-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 1.25rem; }

/* ── Blog index grid ────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem; padding-bottom: 1rem;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; text-decoration: none;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #E8D5C4 0%, #C4D4C0 100%); }
.blog-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--terracotta); text-transform: uppercase; margin-bottom: 0.6rem; }
.blog-card h2, .blog-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--warm-brown); line-height: 1.25; margin-bottom: 0.75rem; }
.blog-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; flex: 1; }
.blog-card .read { margin-top: 1.25rem; font-size: 0.82rem; font-weight: 600; color: var(--sage); }

/* ── Article meta + breadcrumb ──────────────────────────── */
.breadcrumb { font-size: 0.78rem; color: var(--text-soft); padding: 1.25rem 0 0; }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.article-meta { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 1.5rem; letter-spacing: 0.03em; }
.article-head h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600; color: var(--warm-brown); line-height: 1.18; margin-bottom: 0.75rem;
}

/* ── Inline soft CTA box ────────────────────────────────── */
.soft-cta {
  background: var(--cream-dark); border-radius: var(--radius-lg);
  padding: 2rem; margin: 2.5rem 0; text-align: center;
}
.soft-cta p { color: var(--text-dark); margin-bottom: 1.1rem; font-size: 1rem; }

/* ── Related links ──────────────────────────────────────── */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(58,107,40,0.12); }
.related h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--warm-brown); margin-bottom: 1rem; }
.related ul { list-style: none; display: grid; gap: 0.6rem; }
.related a { color: var(--sage); text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--terracotta); }

/* ── Footer ─────────────────────────────────────────────── */
footer.site-footer { background: var(--warm-brown); color: rgba(255,255,255,0.7); padding: 3rem 0 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; justify-content: flex-end; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); text-align: center; }
.footer-copy a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-legal { margin-top: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.35); text-align: center; }
.footer-legal a { color: rgba(255,255,255,0.45); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 30%; flex-direction: column; justify-content: center;
    gap: 1.75rem; background: var(--cream); padding: 2rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s, visibility 0s 0.3s; box-shadow: -8px 0 40px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateX(0); visibility: visible; transition: transform 0.3s, visibility 0s 0s; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
