/* ===========================================================
   Train & Thrive — NAVY / GOLD variant (matches carousel + banner brand)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #15171C;
  --navy-deep: #101216;
  --navy-card: #1D2028;
  --gold: #C8A14A;
  --gold-soft: #E4C783;
  --cream: #F5F1E8;
  --bg-card: #F6F3EC;
  --text: #2A2E33;
  --text-soft: #6B7480;
  --white: #FFFFFF;
  --border: #E7E2D6;

  --font-head: 'Baloo 2', 'Comfortaa', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --max-width: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

p { color: var(--text); }

.eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,161,74,0.35); }

.btn-light { background: var(--gold); color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08); }

.nav { max-width: var(--max-width); margin: 0 auto; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--cream); position: relative; padding-top: 14px; }
.logo::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 3px; background: var(--gold); border-radius: 3px; }

.nav-links { display: flex; gap: 36px; list-style: none; font-size: 16px; color: var(--cream); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
@media (max-width: 760px) { .nav-links a.active { border-bottom: none; padding-bottom: 16px; background: rgba(200,161,74,0.08); } }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--cream); cursor: pointer; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links a { display: block; padding: 16px 32px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; background: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 42px; margin-bottom: 22px; color: var(--navy); }
.hero p.lead { font-size: 17px; color: var(--text-soft); margin-bottom: 22px; max-width: 480px; }
.tags { color: var(--gold); font-weight: 700; margin-bottom: 28px; }
.hero-art { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--gold-soft); box-shadow: 0 18px 40px rgba(21,23,28,0.12); }
.hero-art .illustration { object-fit: cover; object-position: center 25%; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------- Illustration ---------- */
.illustration { width: 100%; height: 100%; display: block; }

/* ---------- Dark band ---------- */
.band-dark { background: var(--navy-deep); color: var(--white); padding: 84px 0; }
.band-dark h2 { color: var(--cream); font-size: 34px; margin-bottom: 20px; }
.band-dark p { color: #B9C1CB; max-width: 620px; margin-bottom: 48px; font-size: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillars h3 { color: var(--gold); font-size: 20px; margin-bottom: 8px; }
.pillars p { color: #A9B2BC; font-size: 15px; margin: 0; }

@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Section spacing ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head p { color: var(--text-soft); margin-top: 14px; font-size: 16px; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .journal-grid { grid-template-columns: 1fr; } }

.card { background: var(--bg-card); border-radius: 18px; padding: 32px; border-top: 3px solid var(--gold); }
.card .eyebrow { display: block; margin-bottom: 10px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 15px; margin-bottom: 22px; }
.card .link { color: var(--navy); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.card-outline { border: 1px solid var(--border); border-radius: 18px; padding: 0 0 28px; overflow: hidden; }
.card-outline .art { aspect-ratio: 16/9; }
.card-outline .body { padding: 24px 28px 0; }
.card-outline h3 { font-size: 20px; margin-bottom: 10px; }
.card-outline p { color: var(--text-soft); font-size: 15px; margin-bottom: 18px; }

/* ---------- Service cards (photo + description, About-page treatment) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.service-card .art { aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--gold-soft); box-shadow: 0 14px 30px rgba(21,23,28,0.10); margin-bottom: 20px; }
.service-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.service-card .art.art-inset { padding: 22px; }
.service-card .art.art-inset img { border-radius: 12px; object-fit: contain; }
.service-card .art-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; color: var(--text-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  background: repeating-linear-gradient(45deg, var(--bg-card), var(--bg-card) 12px, #EFE8D6 12px, #EFE8D6 24px);
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 15px; margin-bottom: 16px; }
.service-card .link { color: var(--navy); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.about-grid .illustration { border-radius: 28px; object-fit: cover; object-position: center; }
.about-grid .hero-art { border-radius: 28px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--gold-soft); box-shadow: 0 18px 40px rgba(21,23,28,0.12); aspect-ratio: 4/5; }

.credentials-block { margin: 22px 0 26px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-cta { text-align: center; }
.cred-grid { display: grid; grid-template-columns: repeat(5, auto); column-gap: 10px; row-gap: 8px; align-items: center; }
.cred-row-break { display: none; }
.cred-item { color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap; }
.cred-dot { color: var(--gold); text-align: center; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .hero-art { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .cred-grid { grid-template-columns: none; display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 10px; }
  .cred-row-break { display: block; flex-basis: 100%; height: 0; }
}

/* ---------- Journal articles ---------- */
.article-meta { color: var(--text-soft); font-size: 14px; margin: 10px 0 0; }
.article-cover { border-radius: 20px; overflow: hidden; margin-top: 26px; aspect-ratio: 16/9; background: var(--bg-card); border: 1px solid var(--gold-soft); box-shadow: 0 14px 30px rgba(21,23,28,0.10); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.article-cover-credit { font-size: 12px; color: var(--text-soft); margin: 8px 0 0; text-align: right; }
.journal-thumb { aspect-ratio: 16/9; border-radius: 14px 14px 0 0; overflow: hidden; margin: -32px -32px 20px; background: var(--navy-card); }
.journal-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.article-lead { color: var(--text-soft); font-size: 18px; margin-top: 20px; line-height: 1.6; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); margin-top: 36px; }
.article-body h2 { font-size: 23px; margin: 42px 0 14px; }
.article-body h3 { font-size: 18px; margin: 30px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }
.article-body blockquote { border-left: 3px solid var(--gold); padding-left: 20px; margin: 26px 0; font-style: italic; color: var(--text-soft); }
.article-reflection { background: var(--bg-card); border-left: 4px solid var(--gold); border-radius: 10px; padding: 26px 30px; margin: 34px 0; }
.article-reflection h3 { margin-top: 0; }
.article-references { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-soft); }
.article-references h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.article-references ul { margin-left: 20px; }
.article-references li { margin-bottom: 8px; }
.article-source { margin-top: 30px; font-size: 14px; color: var(--text-soft); }
.article-source a { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--gold); }
.article-close { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--bg-card); border-radius: 18px; padding: 32px; border-top: 3px solid var(--gold); }
.testimonial-card .quote { font-size: 16px; color: var(--text); font-style: italic; line-height: 1.7; margin-bottom: 18px; }
.testimonial-card .attribution { color: var(--navy); font-weight: 700; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; text-align: center; background: var(--navy); }
.site-footer .foot-logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--cream); margin-bottom: 8px; }
.site-footer .tags { justify-content: center; margin-bottom: 26px; }
.foot-links { display: flex; gap: 28px; justify-content: center; list-style: none; font-size: 15px; color: #B9C1CB; margin-bottom: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--gold); }
.foot-fine { color: #6E7883; font-size: 13px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--bg-card);
}
.field textarea { min-height: 140px; resize: vertical; }

.contact-info h3 { font-size: 18px; margin: 26px 0 8px; }
.contact-info p { color: var(--text-soft); font-size: 15px; }
.contact-info a { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--gold); }
