/* ============================================================
   Pathway Wellness, Inc. — Shared Stylesheet
   ============================================================ */

/* --- Web Fonts -------------------------------------------- */
@font-face {
  font-family: 'Bogart';
  src: url('../fonts/Bogart-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bogart';
  src: url('../fonts/Bogart-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Variables & Reset -------------------------------------------- */
:root {
  --sage:       #3a4a3f;
  --sage-light: #5a7060;
  --sage-muted: #8a9e8f;
  --cream:      #f0ede4;
  --cream-dark: #e5e1d6;
  --white:      #ffffff;
  --text:       #2b2b2b;
  --text-muted: #6b6b6b;
  --accent-blue: #4472a8;
  --pathway-light-blue: #A7CCD8;
  --pathway-green: #183D3B;

  --font-serif: 'Bogart', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-width:  87rem;
  --gutter:     2rem;
  --header-h:   80px;
}

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

/* Ensure form elements inherit the document font */
button, input, select, textarea { font-family: inherit; font-size: inherit; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.25;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--sage);
}

h1 { font-size: 3.5rem;  line-height: 1;    margin-bottom: 1.25rem; }
h2 { font-size: 2.5rem;  line-height: 1.2;  margin-bottom: 1rem; }
h3 { font-size: 2rem;    line-height: 1.25; margin-bottom: 0.75rem; }
h4 { font-size: 1.5rem;  line-height: 1.33; margin-bottom: 0.75rem; }

p { font-size: 1rem; line-height: 1.25; margin-bottom: 1.25rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 5rem;
}

.section--alt {
  background-color: var(--cream-dark);
}

/* --- What We Do card (Monika design) ---------------------- */
.whatwedo {
  background-color: #E8E8E3;
  padding-block: 80px;
  padding-inline: var(--gutter);
  overflow: hidden;
}

.whatwedo__card {
  max-width: 1328px;
  margin-inline: auto;
  border-radius: 56px;
  background-image: url('../images/whatwedo-bg.png');
  background-size: cover;
  background-position: center;
  aspect-ratio: 1328 / 787;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-origin: center center;
}

.whatwedo__body {
  max-width: 1100px;
  padding-inline: 2rem;
  text-align: center;
  margin-top: 120px;
}

.whatwedo__body p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 48px;
  color: #ffffff;
  max-width: none;
  margin-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.whatwedo__wave {
  vertical-align: middle;
  margin-inline: 0.4em;
}

.whatwedo__pill {
  display: none; /* baked-in image pill serves this role on desktop */
}

/* --- New Revenue card ------------------------------------- */
.newrevenue {
  background-color: #E8E8E3;
  padding-top: 120px;
  padding-bottom: 200px;
  padding-inline: var(--gutter);
  overflow: hidden;
}

.newrevenue__card {
  position: relative;
  max-width: 1328px;
  margin-inline: auto;
  border-radius: 56px;
  background-image: url('../images/whatwedo-bg.png');
  background-size: 170%;
  background-position: center bottom;
  aspect-ratio: 1328 / 787;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-origin: center center;
}

.newrevenue__body {
  max-width: 900px;
  padding-inline: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newrevenue__pill {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pathway-light-blue);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(167, 204, 216, 0.35);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

.newrevenue__headline {
  font-family: 'Bogart', Georgia, serif;
  font-size: 40px;
  line-height: 48px;
  font-weight: 300;
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.newrevenue__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 24px;
  margin-bottom: 0;
  max-width: 700px;
}

.btn-newrevenue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 24px;
  background-color: #ffffff;
  color: var(--pathway-green);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-newrevenue:hover {
  background-color: #f0ede4;
  transform: translateY(-1px);
}

.section--sage {
  background-color: var(--sage);
  color: var(--cream);
}

.section--sage h1,
.section--sage h2,
.section--sage h3 {
  color: var(--cream);
}

.section--sage p {
  color: var(--cream);
  opacity: 0.9;
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* --- Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: #E8E8E3;
  border-bottom: 0.5px dashed var(--pathway-green);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.site-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--pathway-green);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 0.6;
}

.btn-speak {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--pathway-green);
  white-space: nowrap;
  transition: opacity 0.2s;
  justify-self: end;
}

.btn-speak:hover {
  opacity: 0.6;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--pathway-green);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Wave separator character */
.wave {
  display: inline-block;
  font-size: 2em;
  line-height: 1;
  vertical-align: middle;
  margin-inline: 0.15em;
}

/* Small label pill used above section body text */
.section-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--sage);
  border: 1px solid var(--sage-muted);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

/* --- Hero ------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 750px;
  background-color: #E8E8E3;
  align-items: center;
}

.hero__copy {
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-right: 3rem;
  padding-left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
}

.hero__copy-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 640px;
}

.hero__headline {
  font-size: 56px;
  line-height: 1;
  color: var(--pathway-green);
  margin-bottom: 0;
}

.hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--pathway-green);
  margin-bottom: 0;
  max-width: 560px;
}

.hero__image {
  display: flex;
  align-items: center;
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--pathway-green);
  color: #ffffff;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background-color: #0f2928;
  transform: translateY(-1px);
}

/* --- Section subhead -------------------------------------- */
.section-subhead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* --- Pillar grid ------------------------------------------ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transform: none;
}

.pillar-icon {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
}

.pillar:nth-child(even) {
  transform: translateY(70px);
}

.pillar-icon img {
  width: 180px;
  height: auto;
}

.pillar h3 {
  font-size: 24px;
  color: var(--pathway-green);
  margin-top: 0;
  margin-bottom: 0;
}

.pillar p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--pathway-green);
  margin-top: 40px;
  margin-bottom: 0;
  max-width: none;
}

#our-values {
  padding-top: 240px;
  padding-bottom: 320px;
}

#our-values h2 {
  color: var(--pathway-green);
}

#our-values .section-subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--pathway-green);
  max-width: 700px;
}

/* --- Meet Abby section ------------------------------------ */
.meet-abby {
  background-color: #E8E8E3;
  padding-top: 120px;
  padding-bottom: 200px;
}

.meet-abby__heading {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 48px;
  font-weight: 300;
  color: var(--pathway-green);
  text-align: center;
  margin-bottom: 2rem;
}

.meet-abby__divider {
  border-bottom: 1px solid rgba(24, 61, 59, 0.15);
  margin-bottom: 4rem;
}

.meet-abby__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.meet-abby__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meet-abby__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--pathway-light-blue);
  margin-bottom: 0;
  max-width: none;
}

.meet-abby__copy .btn-primary {
  margin-top: 24px;
}

.meet-abby__body {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--pathway-green);
  margin-top: 40px;
  margin-bottom: 0;
  max-width: 560px;
}

.meet-abby__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px 0 0 24px;
}

/* --- Standards split -------------------------------------- */
.standards-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.standards__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#standards .section-pill {
  display: block;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 80px;
}

.standards__copy p {
  font-family: 'Bogart', Georgia, serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 40px;
  color: var(--pathway-green);
  max-width: none;
  margin-bottom: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.standards__copy p:last-child {
  margin-bottom: 0;
}

.standards__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.standards__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Card Grid -------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  padding: 2rem;
}

.card h3 { margin-bottom: 0.75rem; }

/* --- Team grid -------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: left;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  background-color: var(--cream-dark);
  margin-bottom: 1.25rem;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--sage);
  margin-bottom: 0.25rem;
}

.team-card__title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 0.9rem;
}

.team-card__bio {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--sage);
  margin-bottom: 0;
}

/* --- Divider ---------------------------------------------- */
.divider {
  width: 48px;
  height: 2px;
  background-color: var(--sage-muted);
  margin-block: 2rem;
}

.divider--center { margin-inline: auto; }

/* --- Footer ----------------------------------------------- */
.site-footer {
  padding-block: 2rem 2.5rem;
  background-color: var(--cream);
}

.footer-card {
  background-color: var(--sage);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-card__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}

.footer-nav__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-muted);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

.footer-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(240,237,228,0.2);
  padding-top: 1.75rem;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.55;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 1; }

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 860px) {
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .nav-toggle { display: flex; }

  .btn-speak { display: none; }

  .site-nav-wrapper {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: #E8E8E3;
    border-bottom: 0.5px dashed var(--pathway-green);
    padding: 1.5rem var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

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

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav a { font-size: 1rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__copy {
    padding: 3rem var(--gutter) 2rem;
  }

  .hero__headline { font-size: 36px; }

  .hero__image {
    padding-inline: var(--gutter);
    padding-bottom: 3rem;
  }

  /* Pillar grid goes single-column on mobile; team grid stays 2-col until 520px */
  .pillar-grid { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: repeat(2, 1fr); }

  .pillar:nth-child(even) { transform: none; }

  /* Pillar icon and text tighten up for single-column mobile layout */
  .pillar-icon,
  .pillar-icon img { width: 120px; }
  .pillar p { margin-top: 16px; }

  .meet-abby { padding-top: 80px; padding-bottom: 80px; }
  .meet-abby__heading { font-size: 32px; line-height: 40px; }

  /* Flatten grid/split (and copy) so children participate in the container's flex order */
  .meet-abby__grid,
  .standards-split { display: contents; }

  /* Meet Abby: heading → divider → image → eyebrow caption → button → body */
  .meet-abby .container { display: flex; flex-direction: column; }
  .meet-abby__copy    { display: contents; }
  .meet-abby__heading { order: -4; }
  .meet-abby__divider { order: -3; }
  .meet-abby__image   { order: -2; margin-bottom: 0.25rem; }
  .meet-abby__eyebrow { order: -1; align-self: flex-end; text-align: right; }
  .meet-abby .btn-primary { display: none; }
  .meet-abby__body    { order: 1; }

  /* Standards: pill → image → copy */
  #standards .container { display: flex; flex-direction: column; }
  #standards .section-pill { order: -2; margin-bottom: 1.5rem; }
  .standards__image { order: -1; margin-bottom: 2rem; }
  .standards__copy  { order: 0; }

  .footer-card { padding: 2rem; }
  .footer-card__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-logo img { max-width: 220px; }
  .footer-card__bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; }

  /* Fix whatwedo card: remove fixed aspect-ratio so text isn't clipped on mobile */
  .whatwedo { padding-block: 48px; }
  .whatwedo__card {
    aspect-ratio: auto;
    background-color: var(--pathway-green);
    background-size: auto 250%;
    background-position: center bottom;
    padding: 3rem 1.5rem 3.5rem;
  }
  .whatwedo__body {
    margin-top: 0;
    padding-block: 0;
    padding-inline: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .whatwedo__pill {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--pathway-light-blue);
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(167, 204, 216, 0.35);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
  }
  .whatwedo__body p { font-size: 24px; line-height: 32px; }
  .whatwedo__wave { width: 70px; height: 14px; }

  .newrevenue { padding-top: 80px; padding-bottom: 80px; }
  .newrevenue__headline { font-size: 36px; }
  .newrevenue__sub { font-size: 16px; line-height: 24px; }

  /* Pill becomes in-flow at all mobile widths — not just ≤768px */
  .newrevenue__pill {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 1.5rem;
  }

  #our-values { padding-top: 60px; padding-bottom: 60px; }
  #our-values h2 { font-size: 28px; line-height: 1.2; }
}

@media (max-width: 768px) {
  .newrevenue__card {
    aspect-ratio: auto;
    min-height: auto;
    background-color: var(--pathway-green);
    background-size: auto 250%;
    padding: 3rem 1.5rem 3.5rem;
  }

  .newrevenue__body {
    width: 100%;
    padding-inline: 1rem;
  }

  .newrevenue__headline {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.3;
  }

  .btn-newrevenue {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 16px;
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .section { padding-block: 3rem; }
  #our-values { padding-top: 3rem; padding-bottom: 3rem; }
  .pillar-grid,
  .team-grid { grid-template-columns: 1fr; }

  .whatwedo { padding-block: 32px; }
  .whatwedo__body p { font-size: 17px; line-height: 24px; }
  .whatwedo__wave { width: 55px; height: 11px; }
}
