@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Mulish:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ==========================================================
   Social Trail Guide — "Trail Markers" Design System
   Concept: Nature trail / compass metaphor for social skills
   Unique traits vs other domains:
     - Forest green (#2E7D32) as primary — only green-based site
     - Syne (geometric bold) + Mulish — not used anywhere else
     - Diagonal clip-path hero section
     - Scroll reading progress bar
     - Step cards with large numbered trail markers
     - Dark green footer (vs dark navy / dark charcoal elsewhere)
     - Animated left-border card hover
========================================================== */

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

:root {
  --green:       #2E7D32;
  --green-dk:    #1b5e20;
  --green-mid:   #388E3C;
  --green-lt:    #e8f5e9;
  --green-xlt:   #f1f8f1;
  --orange:      #F57C00;
  --orange-dk:   #e65100;
  --orange-lt:   #fff8f0;
  --sky:         #4FC3F7;
  --sky-lt:      #e1f5fe;
  --bg:          #FDFBF7;
  --text:        #3E2723;
  --text-soft:   #6D4C41;
  --text-muted:  #8D6E63;
  --border:      #e0d5c5;
  --border-lt:   #f0ebe0;
  --white:       #ffffff;
  --card-bg:     #fffdf9;

  --max-w:       1140px;
  --header-h:    72px;
  --radius:      12px;
  --radius-sm:   6px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 10px rgba(62,39,35,0.07);
  --shadow:      0 4px 24px rgba(62,39,35,0.1);
  --shadow-lg:   0 12px 48px rgba(62,39,35,0.14);
  --t:           0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Mulish', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--green-dk); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5 {
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.2;
  color: var(--text);
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ─────────── READING PROGRESS BAR ─────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─────────── WRAPPER ─────────── */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ─────────── HEADER ─────────── */
.site-header {
  position: fixed;
  top: 4px; left: 0; right: 0;
  height: var(--header-h);
  z-index: 500;
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}

.site-header.scrolled {
  background: rgba(253, 251, 247, 0.98);
  box-shadow: 0 2px 20px rgba(62,39,35,0.1);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-lt);
  letter-spacing: -0.3px;
}

.site-header.scrolled .site-name { color: var(--green-dk); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  transition: background var(--t), color var(--t);
  position: relative;
}

.site-header.scrolled .nav-link { color: var(--text); }

.nav-link:hover,
.nav-link.active {
  background: var(--green);
  color: var(--white) !important;
}

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 600;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}

.site-header.scrolled .menu-toggle span { background: var(--text); }

.menu-toggle.open {
  position: fixed;
  top: calc((var(--header-h) - 36px) / 2);
  right: clamp(16px, 4vw, 40px);
  z-index: 9001;
}

.menu-toggle.open span { background: var(--white); }

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--green) 60%, var(--green-mid) 100%);
  padding: calc(var(--header-h) + 72px) 0 120px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.hero-cta:hover {
  color: var(--white);
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,124,0,0.4);
}

.hero-cta svg { flex-shrink: 0; }

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

/* ─────────── CONTENT BODY ─────────── */
.content-body {
  padding: 72px 0;
}

.content-body img {
  border-radius: var(--radius);
  margin: 28px 0;
  width: 100%;
  object-fit: cover;
  max-height: 460px;
  box-shadow: var(--shadow);
}

.content-body h2 {
  font-size: 1.6rem;
  color: var(--green-dk);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-lt);
}

.content-body h2:first-child { margin-top: 0; }

.content-body p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
}

/* ─────────── SECTION LABEL ─────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ─────────── SECTION HEADING ─────────── */
.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 48px;
}

/* ─────────── STEPS SECTION ─────────── */
.steps-section {
  background: var(--green-xlt);
  padding: 80px 0;
  position: relative;
}

.steps-section::before {
  content: '';
  position: absolute;
  top: -40px; left: 0; right: 0;
  height: 40px;
  background: var(--green-xlt);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.step-card-body {
  padding: 28px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50%;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.step-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green-dk);
}

.step-card-body p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* ─────────── ARTICLES LIST ─────────── */
.articles-section { padding: 80px 0; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-lt);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  padding: 28px 28px 28px 24px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card:hover {
  border-left-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.article-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.3px;
  margin-top: auto;
  transition: gap var(--t), color var(--t);
}

.article-card:hover .article-card-link { gap: 10px; color: var(--orange); }

/* articles page full list */
.articles-full-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-row {
  background: var(--card-bg);
  border: 1px solid var(--border-lt);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: border-left-color var(--t), box-shadow var(--t), transform var(--t);
}

.article-row:hover {
  border-left-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.article-row-num {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--border);
  min-width: 48px;
  line-height: 1;
  margin-top: 4px;
  transition: color var(--t);
}

.article-row:hover .article-row-num { color: var(--orange-lt); }

.article-row-content { flex: 1; }

.article-row h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.3;
}

.article-row p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
  transition: gap var(--t), color var(--t);
}

.article-row:hover .read-link { gap: 10px; color: var(--orange); }

/* ─────────── PAGE HEADER ─────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--green) 100%);
  padding: calc(var(--header-h) + 56px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0;
}

/* ─────────── ARTICLE PAGE ─────────── */
.article-page { padding: 64px 0 80px; }

.article-layout {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 36px;
  transition: color var(--t), gap var(--t);
}

.back-link:hover { color: var(--green); gap: 12px; }

.article-layout h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 36px;
  line-height: 1.15;
}

.article-layout .content-body p { font-size: 17px; }

/* ─────────── ABOUT PAGE ─────────── */
.about-section { padding: 72px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow var(--t), border-top-color var(--t);
}

.value-card:hover {
  box-shadow: var(--shadow);
  border-top-color: var(--orange);
}

.value-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dk);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.about-image-block {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.about-image-block img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.about-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-box {
  text-align: center;
  background: var(--green-lt);
  border-radius: var(--radius);
  padding: 24px 16px;
}

.stat-box .stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-box .stat-desc {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ─────────── TRAIL DIVIDER ─────────── */
.trail-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  color: var(--border);
}

.trail-divider::before,
.trail-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.trail-divider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─────────── FOOTER ─────────── */
.site-footer {
  background: var(--green-dk);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-site-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
}

.footer-desc {
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 380px;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-nav a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  transition: color var(--t), padding-left var(--t);
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-block { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-name { display: none; }

  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: rgba(27,94,32,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 9000;
  }

  .site-nav.open { display: flex; }

  .nav-link {
    font-size: 22px;
    padding: 14px 32px;
    color: var(--white) !important;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.15);
  }

  .steps-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .about-stat-row { grid-template-columns: 1fr 1fr; }

  .article-row {
    flex-direction: column;
    gap: 10px;
  }

  .article-row-num { font-size: 1.4rem; min-width: unset; }
}

@media (max-width: 480px) {
  .about-stat-row { grid-template-columns: 1fr; }
  .page-hero { padding-bottom: 60px; }
}
