/* ==========================================================================
   The Human Shift — homepage styles
   Palette: https://coolors.co/384e5d-11ed27-ececec-1d2e3a-eb165d
   ========================================================================== */

:root {
  --navy-deep: #1d2e3a;      /* darkest — header/footer bg, primary text */
  --navy: #384e5d;           /* secondary dark — section bg, secondary text */
  --green: #11ed27;          /* accent — CTAs, highlights */
  --green-dark: #0bb61e;     /* hover state for green */
  --pink: #eb165d;           /* accent — emotional emphasis, small highlights */
  --grey: #ececec;           /* light background */
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.lede {
  font-size: 1.15rem;
  color: var(--navy);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--green-dark);
  margin-bottom: 0.9em;
}

.eyebrow .eyebrow-service { color: var(--pink); }

section { padding: 76px 0; }
section.tight { padding: 56px 0; }

.section-grey { background: var(--grey); }
.section-dark { background: var(--navy-deep); color: var(--grey); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--green); }

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e2e2e2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-lockup {
  height: 46px;
  width: auto;
  display: block;
}

.hero-lockup {
  height: 64px;
  width: auto;
  margin-bottom: 28px;
}

.vision-lockup {
  height: 52px;
  width: auto;
  margin-bottom: 28px;
}

nav.main-nav { display: flex; align-items: center; gap: 30px; }

nav.main-nav a:not(.nav-cta) {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  padding: 6px 1px;
  transition: color 0.15s ease;
}

nav.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav.main-nav a:not(.nav-cta):hover,
nav.main-nav a:not(.nav-cta):focus-visible {
  color: var(--navy-deep);
}

nav.main-nav a:not(.nav-cta):hover::after,
nav.main-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--green);
  color: var(--navy-deep) !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(17, 237, 39, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(17, 237, 39, 0.45);
}

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green); color: var(--navy-deep); }
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--navy-deep);
}
.btn-outline:hover { background: var(--navy-deep); color: var(--white); }

.link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-deep);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--pink); border-color: var(--pink); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.14;
}

.hero-inner { position: relative; max-width: 760px; }

.hero .eyebrow { color: var(--green); }

.hero h1 { color: var(--white); }

.hero .lede { color: #d7dee3; max-width: 620px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}

.hero-scroll {
  color: #c7d0d6;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
}
.hero-scroll:hover { color: var(--white); }

.quick-nav-prompt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--pink);
  margin-top: 36px;
  margin-bottom: 0;
}

.quick-nav-prompt-icon { flex: none; color: var(--pink); }

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.quick-nav a {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-nav a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy-deep);
}

/* ---------- Service / story blocks (services.html, about.html) ---------- */

.service-block {
  max-width: 760px;
}

.service-block h2 { margin-bottom: 20px; }
.service-block h3 { margin-top: 32px; margin-bottom: 10px; color: var(--navy-deep); }
.service-block h3:first-of-type { margin-top: 0; }

.service-block .who-for {
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--navy-deep);
  margin-top: 24px;
}

.service-block .btn-outline { margin-top: 8px; }

/* Give the who-for box and outline button contrast against their own
   section's background, on both white and grey-background sections. */
section:not(.section-grey) .service-block .who-for {
  background: var(--grey);
  border-color: #dcdcdc;
}

section.section-grey .service-block .who-for {
  background: var(--white);
}

section:not(.section-grey) .service-block .btn-outline {
  background: var(--grey);
}

section.section-grey .service-block .btn-outline {
  background: var(--white);
}

/* Same specificity as the two rules above, declared after them, so the
   navy/white hover state always wins over the grey/white resting fill —
   otherwise light-grey-on-hover text turns unreadable. */
section .service-block .btn-outline:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.service-block ul { margin: 0 0 1em; padding-left: 22px; }
.service-block ul li { margin-bottom: 0.5em; color: var(--navy); }

/* ---------- Who this is for ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.audience-card {
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.audience-card .eyebrow { color: var(--pink); }

.audience-card h3 { margin-bottom: 0.6em; }

.audience-card p { color: var(--navy); flex-grow: 1; }

.audience-card .link-arrow { margin-top: 10px; align-self: flex-start; }

/* ---------- Vision ---------- */

.vision-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--white);
  border-left: 4px solid var(--green);
  padding-left: 22px;
  margin: 0 0 28px;
}

/* ---------- About ---------- */

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

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 22px 0 24px;
}

.badge-img {
  height: 76px;
  width: auto;
}

/* icf-mcc.png has ~13% built-in padding around the badge art compared to the
   other (edge-to-edge) badges, so it renders visibly smaller at the same
   height — scale it up so it carries equal visual weight, per Francesca's note
   that this is her most important credential. */
.badge-img.badge-mcc {
  height: 88px;
}

.credential-pill {
  background: var(--grey);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-deep);
}

/* ---------- Values ---------- */

.values-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
  margin-top: 12px;
}

.value-item h3 {
  color: var(--pink);
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.value-item p { color: var(--navy); font-size: 0.94rem; }

/* ---------- Testimonials (carousel) ---------- */

.testimonial-carousel-wrap {
  position: relative;
  margin-top: 40px;
}

.testimonial-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* overflow-x: auto implicitly makes overflow-y compute to auto too, which
     clips anything that rises above the container on hover — so the cards
     need headroom (padding-top) to lift without their green top border or
     shadow getting cut off. */
  padding-top: 10px;
  padding-bottom: 4px;
}

.testimonial-carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 3px solid var(--green);
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.testimonial-card p.quote {
  font-family: var(--font-display);
  font-size: 1.03rem;
  color: var(--navy-deep);
  margin-bottom: 16px;
}

.testimonial-card .attribution {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: auto;
}

.testimonial-card .attribution span {
  display: block;
  font-weight: 400;
  color: #6a7883;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--navy-deep);
  background: var(--white);
  color: var(--navy-deep);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.carousel-btn:hover { background: var(--navy-deep); color: var(--white); }
.carousel-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.step .link-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
}

.not-expect {
  margin-top: 40px;
  background: #fbe9ef;
  border-left: 4px solid var(--pink);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.not-expect h3 {
  color: var(--pink);
  margin-bottom: 14px;
}

.not-expect ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.not-expect li {
  color: var(--navy-deep);
  padding-left: 38px;
  position: relative;
}

.not-expect li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid #d9d9d9;
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-dark);
  flex: none;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  color: var(--navy);
  margin-top: 10px;
  padding-right: 30px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: 24px;
  padding: 64px 32px;
}

.final-cta h2 { color: var(--white); }
.final-cta .lede { color: #d7dee3; max-width: 560px; margin-left: auto; margin-right: auto; }

.final-cta-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

.secondary-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: #b9c3c9;
}

.secondary-note a { color: var(--green); text-decoration: underline; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-deep);
  color: #aab6bd;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-lockup { height: 42px; }

footer.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a { text-decoration: none; color: #aab6bd; }
footer.site-footer a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  nav.main-nav a:not(.nav-cta) { display: none; }
  nav.main-nav .nav-cta { padding: 10px 16px; font-size: 0.88rem; }
  .brand-lockup { height: 36px; }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion: scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-group .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-group .reveal:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Motion: hover lift ---------- */

.audience-card,
.testimonial-card,
.who-for {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.audience-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(29, 46, 58, 0.1);
}

.who-for:hover { transform: translateX(3px); }

.badge-img { transition: transform 0.2s ease; }
.badge-img:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Motion: hero decorative circles ---------- */

.hero-deco {
  position: absolute;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.16;
  pointer-events: none;
}

.hero-deco-1 { width: 130px; height: 130px; bottom: -40px; left: 6%; }
.hero-deco-2 { width: 56px; height: 56px; top: 65%; right: 16%; opacity: 0.22; }

@media (prefers-reduced-motion: no-preference) {
  .hero::after,
  .hero-deco-1 { animation: floatCircle 9s ease-in-out infinite; }
  .hero-deco-2 { animation: floatCircle 7s ease-in-out infinite; animation-delay: 0.6s; }
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.05); }
}
