/* Shared building blocks used on every page (testimonials, newsletter sign-up).
   Edit here so the whole site stays consistent. */

.home-section {
  padding-top: var(--space--main-v-padding);
  padding-bottom: var(--space--main-v-padding);
}

.home-section.beige {
  background-color: var(--colours--lightest-background);
}

.home-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-eyebrow {
  color: var(--colours--main-green);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 700;
}

.home-section-title {
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  letter-spacing: -.03em;
  text-wrap: balance;
}

.home-head:has(.home-section-title) {
  max-width: 980px;
}

@media screen and (max-width: 767px) {
  .home-section {
    padding-top: var(--space--mobile-v-padding);
    padding-bottom: var(--space--mobile-v-padding);
  }

  .home-section-title {
    font-size: 1.875rem;
    line-height: 1.15;
  }
}

/* Testimonials: equal-height cards in a grid (replaces the old slider). */
.home-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.home-quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: #fff;
  border: 1px solid #ebebeb;
  border-radius: var(--radius--reg-corners);
  padding: 1.75rem;
}

.home-quote-mark {
  color: var(--colours--bright-green);
  height: 2rem;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.home-quote blockquote {
  flex: 1;
  margin: .5rem 0 1.5rem;
  padding: 0;
  border: 0;
}

.home-quote-lead {
  color: var(--colours--dark-teal);
  margin: 0 0 .6rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-quote-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.home-quote figcaption {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ebebeb;
  padding-top: 1rem;
  font-size: .9375rem;
  line-height: 1.4;
}

.home-quote figcaption strong {
  color: var(--colours--dark-teal);
}

.home-quote figcaption span {
  color: #6b6560;
}

@media screen and (max-width: 991px) {
  .home-quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .home-quotes {
    grid-template-columns: 1fr;
  }
}

.home-quote {
  text-align: left;
}

/* Phones: the three strongest quotes are enough. */
@media screen and (max-width: 767px) {
  .home-quote:nth-child(n+4) {
    display: none;
  }
}

.home-quote figcaption {
  text-align: left;
}

/* Testimonials: compact cards. */
.home-quotes {
  gap: 1.25rem;
}

.home-quote {
  padding: 1.25rem 1.4rem;
}

.home-quote-mark {
  height: 1.4rem;
  font-size: 2.75rem;
}

.home-quote blockquote {
  margin: .25rem 0 1rem;
}

.home-quote-lead {
  margin-bottom: .4rem;
  font-size: 1rem;
}

.home-quote-body {
  font-size: .9375rem;
  line-height: 1.5;
}

.home-quote figcaption {
  padding-top: .75rem;
  font-size: .875rem;
}

/* Heart instead of a quote mark ("Love notes from the lunchroom"). */
.home-quote-mark {
  display: flex;
  align-items: center;
  height: 1.75rem;
  color: var(--la-orange-text);
  font-size: 0;
}

/* Testimonials: one notch smaller all round. */
.la-testimonials.home-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.la-testimonials .centered-content {
  grid-row-gap: 2rem;
  row-gap: 2rem;
}

.la-testimonials .home-section-title {
  font-size: clamp(1.875rem, 2.6vw, 2.25rem);
}

.la-testimonials .home-quotes {
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

.la-testimonials .home-quote {
  padding: 1rem 1.15rem;
}

.la-testimonials .home-quote-mark {
  height: 1.4rem;
}

.la-testimonials .home-quote-mark svg {
  width: 20px;
  height: 20px;
}

.la-testimonials .home-quote-lead {
  font-size: .9375rem;
}

.la-testimonials .home-quote-body {
  font-size: .875rem;
}

.la-testimonials .home-quote figcaption {
  padding-top: .6rem;
  font-size: .8125rem;
}

/* Newsletter sign-up: a compact band instead of a full-screen block. */
.section-subscribe {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-subscribe .row {
  align-items: center;
  gap: 3rem;
}

.section-subscribe .content-3 {
  max-width: 520px;
}

.section-subscribe .text-33 {
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  line-height: 1.1;
}

.section-subscribe .title-4 {
  margin-bottom: 1rem;
}

.section-subscribe .text-35 {
  font-size: 1.0625rem;
  line-height: 1.55;
}

.section-subscribe .sub-form {
  max-width: 460px;
}

.section-subscribe .sub-form-feild,
.section-subscribe .form__input-drop {
  height: 44px;
  min-height: 44px;
  padding-top: .6rem;
  padding-bottom: .6rem;
  margin-bottom: 0;
}

.section-subscribe .form-space-sub {
  height: 8px;
}

@media screen and (max-width: 767px) {
  .section-subscribe {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section-subscribe .row {
    gap: 1.5rem;
  }

  .section-subscribe .content-3,
  .section-subscribe .text-34 {
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Footer tagline: even line lengths, no lonely last word. */
.footer-tagline {
  white-space: nowrap;
}

@media screen and (max-width: 479px) {
  .footer-tagline {
    white-space: normal;
    text-wrap: balance;
  }
}

/* White LunchAssist logo above the footer tagline. */
.footer-logo {
  display: inline-block;
  margin-bottom: .35rem;
}

/* Logo, tagline and social icons stay together, sitting low in the column. */
.left-footer {
  justify-content: flex-end;
}

.left-footer .footer-social-block {
  margin-top: 0;
  padding-top: 1.25rem;
}

.footer-logo img {
  display: block;
  width: 180px;
  height: auto;
}

/* Team bio pages: the name/title column was a fixed 70rem, which made phones scroll sideways. */
.bio-col {
  max-width: 100%;
}

/* Consulting page header photo is wider than a phone screen; clip it instead of scrolling sideways. */
.header-consulting {
  overflow-x: clip;
}

/* Team block (story on the left, 9 / 10 / 15 cards on the right).
   Used on the home page and the About page; home.css repeats the same values. */
.home-lede {
  color: var(--colours--dark-text);
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.home-nerds {
  color: var(--colours--main-green);
  font-weight: 700;
}

.home-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.home-team-title {
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  letter-spacing: -.03em;
}

.home-team-points {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.home-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--colours--lightest-background);
  border-radius: var(--radius--reg-corners);
  padding: 1rem 1.25rem;
}

.home-point strong {
  color: var(--colours--dark-teal);
  font-size: 1.0625rem;
}

.home-point p {
  margin: .2rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.home-point-number {
  color: var(--la-orange-text);
  flex: 0 0 3rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

@media screen and (max-width: 991px) {
  .home-team {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 767px) {
  .home-team-title {
    font-size: 1.875rem;
    line-height: 1.15;
  }
}

/* Team bio pages: every headshot the same tidy size and shape (no more extra-tall photos). */
.second-bio-image {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 1rem;
}

@media screen and (max-width: 767px) {
  .second-bio-image {
    max-width: 280px;
  }
}

/* Hand-drawn orange crayon underline: grainy wax texture, a few overlapping wobbly strokes. */
.crayon-underline {
  padding-bottom: .25em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cfilter id='w' x='-5%25' y='-50%25' width='110%25' height='200%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6 2.4' numOctaves='3' seed='4' result='grain'/%3E%3CfeColorMatrix in='grain' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.7 2.05' result='holes'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.08 .6' numOctaves='2' seed='9' result='wobble'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='wobble' scale='3.5' result='rough'/%3E%3CfeComposite in='rough' in2='holes' operator='in'/%3E%3C/filter%3E%3Cg filter='url(%23w)' fill='none' stroke='%23ef8a2e' stroke-linecap='round'%3E%3Cpath d='M4 9 C 50 6.5, 110 10.5, 170 8 S 260 7, 296 8.5' stroke-width='6.5'/%3E%3Cpath d='M10 11 C 70 9, 130 12, 190 10 S 265 10, 292 10.5' stroke-width='4' opacity='.9'/%3E%3Cpath d='M2 7.5 C 60 5.5, 150 8.5, 220 6.5 S 280 7, 298 7' stroke-width='2.8' opacity='.75'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .55em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Green brand word in headlines ("Your school nutrition sidekick."). */
.home-highlight {
  color: var(--colours--main-green);
}

/* Nav labels never wrap ("Free Resources", "Book a demo" were breaking on team/learn pages). */
@media screen and (min-width: 992px) {
  .nav-link,
  .nav-main .but-solid-lime .button-text,
  .nav-main .button-text > div {
    white-space: nowrap;
  }
}

/* Smaller laptops: team and Learn pages (older stylesheet) use the same nav sizing as the main pages. */
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .nav-main a.nav-link {
    margin-left: 0;
    margin-right: 0;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 14px;
  }

  .nav-main .logo-main {
    flex: none;
    width: 150px;
  }

  .nav-main .logo-main img {
    width: 150px;
    height: auto;
  }
}

@media screen and (min-width: 992px) and (max-width: 1279px) {
  .nav-main .nav {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Team bio pages: let the bio header row shrink to the screen instead of
   pushing the page wider (LUN-1174). */
.centered-content {
  min-width: 0;
}

.bio-col {
  min-width: 0;
  flex-shrink: 1;
}

.centered-content:has(> .row > .bio-col) {
  width: 100%;
  box-sizing: border-box;
}

.row > .bio-col {
  width: auto;
  flex: 1 1 auto;
}

/* ======================================================================
   Accessibility (WCAG 2.1 AA): contrast-safe brand colors, skip link, focus
   ====================================================================== */
:root {
  /* Burnt orange for orange TEXT (4.6:1+ on every light background used).
     The bright brand orange stays for decoration: underlines, hearts, borders, fills. */
  --la-orange-text: #a35309;
  /* Deeper lime for buttons so white text passes 4.5:1 (5.4:1). */
  --la-lime-a11y: #5d7223;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: .75rem 1.1rem;
  border-radius: .6rem;
  background-color: var(--colours--dark-teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--colours--main-orange);
  outline-offset: 2px;
}

#main:focus {
  outline: none;
}

/* Visible keyboard focus everywhere (mouse clicks don't show it). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--colours--main-orange);
  outline-offset: 2px;
}

/* Lime buttons: deeper lime + white text. */
.but-solid-lime {
  background-color: var(--la-lime-a11y);
}

.but-solid-lime .button-text,
.but-solid-lime .button-text > div,
.but-solid-lime .button-text > span {
  color: #fff;
}

.but-outline-lime {
  border-color: var(--la-lime-a11y);
}

.but-outline-lime,
.but-outline-lime .button-text {
  color: var(--la-lime-a11y);
}

/* Orange pills with white text use the deeper orange as their fill. */
.hero-chip-pill {
  background-color: var(--la-orange-text);
}

/* Home testimonial attribution on the orange card. */
.feature-attrib span {
  color: #4a1a0b;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hero-chip,
  .consult-chip,
  .audit-chip {
    animation: none !important;
  }
}

/* Higher-specificity versions so page stylesheets loaded later don't undo them. */
.but-solid-lime.but-large,
.nav-main .but-solid-lime {
  border-color: var(--la-lime-a11y);
  background-color: var(--la-lime-a11y);
  color: #fff;
}

.hero-chip .hero-chip-pill {
  background-color: var(--la-orange-text);
}

/* Old-template text in brand orange (team job titles, Learn breadcrumbs). */
.job-title,
.bc-link-active {
  color: var(--la-orange-text);
}

/* Form placeholder text dark enough to read (4.5:1). */
::placeholder {
  color: #6b6560;
  opacity: 1;
}

/* Mailing-list form fields: darker text and placeholder (was #808080 on #f6f6f6). */
.form__input,
.form__input::placeholder,
.form__input.w-select {
  color: #4a4a4a;
}

/* Submit buttons on the older forms use the same deeper lime. */
.form__button,
.submit-button {
  background-color: var(--la-lime-a11y);
  color: #fff;
}

/* Very narrow phones (320px): keep the logo and menu button on screen. */
@media screen and (max-width: 360px) {
  .nav-main .logo-main img {
    width: 128px;
    height: auto;
  }
}

/* Latest Weekly Update, tucked into the yellow subscribe box (home, Consulting, Software). */
.section-subscribe .sub-latest {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 460px;
  margin-top: 1.5rem;
  padding: .6rem .9rem .6rem .6rem;
  border-radius: 14px;
  background-color: #fdf3d8;
  box-shadow: 0 2px 8px rgba(31, 60, 63, .1);
  color: var(--colours--dark-teal);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}

.section-subscribe .sub-latest:hover {
  box-shadow: 0 10px 22px -10px rgba(31, 60, 63, .4);
  transform: translateY(-2px);
}

.section-subscribe .sub-latest img {
  flex: none;
  width: 116px;
  height: auto;
  aspect-ratio: 1400 / 658;
  object-fit: cover;
  border-radius: 8px;
}

.sub-latest-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.sub-latest-label {
  color: var(--la-orange-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sub-latest-title {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.sub-latest-link {
  color: var(--colours--main-green);
  font-size: .8125rem;
  font-weight: 700;
}

@media screen and (max-width: 479px) {
  .section-subscribe .sub-latest img {
    width: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-subscribe .sub-latest:hover {
    transform: none;
  }
}

/* The box spaces its items 40px apart; sit the card a bit closer to the paragraph. */
.section-subscribe .sub-latest {
  margin-top: -1rem;
}

@media screen and (max-width: 767px) {
  .section-subscribe .sub-latest {
    margin-top: 1.25rem;
  }
}

/* Subscribe box: title sits closer to its paragraph; card a comfortable step below. */
.section-subscribe .content-3 {
  gap: 1rem;
}

.section-subscribe .title-4 {
  margin-bottom: 0;
}

.section-subscribe .sub-latest {
  margin-top: .5rem;
}

@media screen and (max-width: 767px) {
  .section-subscribe .content-3 {
    gap: 1rem;
  }

  .section-subscribe .sub-latest {
    margin-top: .5rem;
  }
}
