/*
 * Mi Footing public website styles (website/).
 * The colour variables in :root are the same Jamaican Modern Wellness tokens as the student app
 * (apps/mobile/src/constants/theme.ts), so the website and app look like one product. Change a
 * brand colour in both places.
 */
:root {
  --green: #28783d;
  --green2: #1e5e30;
  --gold: #f3c83d;
  --ink: #252b28;
  --muted: #59675d;
  --ivory: #ffffff;
  --white: #fff;
  --line: #e4e8df;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font:
    16px/1.65 system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: white;
  padding: 12px;
}
.skip:focus {
  left: 8px;
  z-index: 20;
}
.topbar {
  background: var(--green2);
  color: white;
  text-align: center;
  font-size: 0.83rem;
  padding: 7px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 1.48rem;
  letter-spacing: -0.05em;
}
.brand .mi {
  color: var(--green);
}
.links {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 0.89rem;
  font-weight: 600;
}
.links a:hover,
.links a[aria-current="page"] {
  color: var(--green);
}
.actions {
  display: flex;
  gap: 9px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 11px;
  padding: 11px 17px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-weight: 700;
  transition: 0.2s;
}
.btn:hover {
  background: var(--green2);
}
.btn.alt {
  background: transparent;
  color: var(--green);
}
.btn.alt:hover {
  background: #eaf3eb;
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.menu {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
}
.hero {
  padding: 78px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  right: -150px;
  top: -210px;
  width: 630px;
  height: 630px;
  background: #f0f5ed;
  border-radius: 50%;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 55px;
  align-items: center;
}
.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  margin: 14px 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.lead {
  font-size: 1.14rem;
  color: #4d6054;
  max-width: 570px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
}
.visual {
  background: #eaf2e9;
  border-radius: 32px;
  min-height: 400px;
  padding: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 70px #183d2a0e;
}
.visual:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 30px solid #28783d10;
  border-radius: 50%;
  right: -20px;
  top: -20px;
}
.visual-card {
  background: #fff;
  border-radius: 22px;
  padding: 27px;
  width: min(340px, 100%);
  box-shadow: 0 15px 35px #001b0d33;
  z-index: 1;
}
.mood {
  display: flex;
  justify-content: space-between;
  font-size: 1.75rem;
  margin: 20px 0;
}
.mood span {
  background: #f5f7f2;
  border-radius: 13px;
  padding: 7px;
}
.smalltag {
  background: #e6f2e7;
  color: var(--green);
  font-size: 0.75rem;
  padding: 6px 11px;
  border-radius: 20px;
  font-weight: 700;
}
.section {
  padding: 72px 0;
}
.section.soft {
  background: #f9f8f2;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section h2,
.pagehero h1 {
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin: 8px 0 12px;
}
.section-head p,
.pagehero p {
  color: var(--muted);
  max-width: 640px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: 0 5px 20px #1b36220a;
}
.card h3 {
  margin: 12px 0 8px;
  font-size: 1.13rem;
}
.card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}
.iconbox {
  width: 48px;
  height: 48px;
  background: #e9f3e9;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}
.article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.article a {
  color: var(--green);
  font-weight: 750;
  margin-top: auto;
}
.date {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}
.event {
  display: flex;
  gap: 17px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 16px;
  background: white;
  border-radius: 15px;
  margin-bottom: 12px;
}
.datebox {
  min-width: 74px;
  background: #e8f2e8;
  color: var(--green);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
}
.event h3 {
  margin: 0;
  font-size: 1rem;
}
.event p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}
.event .event-meta {
  flex: 1;
}
.callout {
  background: var(--green);
  color: white;
  border-radius: 28px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.callout h2 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 0 0 12px;
}
.callout p {
  max-width: 600px;
  margin: 0;
  color: #e4f3e6;
}
.footer {
  background: #112b1c;
  color: #eaf4e9;
  padding: 48px 0 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer a {
  display: block;
  color: #d2e2d3;
  margin: 7px 0;
  font-size: 0.9rem;
}
.footer h4 {
  margin: 0 0 13px;
}
.footer-bottom {
  border-top: 1px solid #ffffff29;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #bed2c0;
}
.pagehero {
  padding: 64px 0 35px;
}
.content {
  padding: 20px 0 75px;
}
.prose {
  max-width: 850px;
}
.prose h2 {
  margin-top: 35px;
}
.prose p,
.prose li {
  color: #526359;
}
.formbox {
  background: white;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 20px;
  max-width: 560px;
}
.field {
  display: block;
  margin: 16px 0;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cad7cc;
  border-radius: 9px;
  background: white;
}
.status {
  background: #fff2c8;
  border-left: 4px solid #d49d12;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 15px 0;
}
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filterbar button {
  border: 1px solid #b6cbb9;
  background: white;
  color: var(--green);
  border-radius: 24px;
  padding: 7px 15px;
}
.filterbar button.active {
  background: var(--green);
  color: white;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1040px) {
  .links {
    gap: 10px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    gap: 30px;
  }
}
@media (max-width: 820px) {
  .menu {
    display: block;
  }
  .nav {
    flex-wrap: wrap;
    padding: 13px 0;
  }
  .links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
  }
  .links.open {
    display: flex;
  }
  .actions {
    margin-left: auto;
  }
  .hero-grid,
  .two {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0;
  }
  .visual {
    min-height: 310px;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }
  .brand {
    font-size: 1.2rem;
  }
  .actions .btn {
    padding: 8px;
    font-size: 0.76rem;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
  .cards,
  .news-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .callout {
    display: block;
    padding: 30px;
  }
  .callout .btn {
    margin-top: 20px;
  }
  .visual {
    min-height: 280px;
  }
  .visual-card {
    padding: 20px;
  }
}
/* ---------------------------------------------------------------
   CLEAN WHITE DESIGN — Approved website direction (Option B)
   The public site uses white space for readability, while the
   student app and website share green, gold, and footprint branding.
   --------------------------------------------------------------- */
body {
  background: #fff;
}
.header {
  box-shadow: 0 3px 18px rgba(23, 44, 32, 0.035);
}
.hero {
  background: linear-gradient(115deg, #fff 52%, #f7faf5 100%);
}
.hero .visual {
  border: 1px solid #dce9db;
}
.section:not(.soft) {
  background: #fff;
}
.card,
.article,
.event {
  box-shadow: 0 6px 22px rgba(23, 44, 32, 0.045);
}
.card:hover,
.article:hover {
  border-color: #b6d3bd;
}
/* A narrow gold rule gives the university news feature a subtle
   Jamaican brand accent without filling the page with colour. */
.featured-news {
  background: #fff;
  border-top: 1px solid #eef1ec;
}
.featured-news .section-head {
  border-left: 5px solid var(--gold);
  padding-left: 20px;
}
.featured-news .news-grid {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(145px, auto));
}
.featured-news .news-grid .article:first-child {
  grid-row: 1 / 3;
  background: #f8faf7;
  padding: 32px;
  border-color: #dfe9de;
}
.featured-news .news-grid .article:first-child h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
}
.featured-news .news-grid .article:first-child::before {
  content: "FEATURED UCC STORY";
  display: block;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 30px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.featured-news .news-grid .article:not(:first-child) {
  padding: 22px 25px;
}
.featured-news .news-grid .article:not(:first-child) h3 {
  font-size: 1.13rem;
}
@media (max-width: 820px) {
  .featured-news .news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .featured-news .news-grid .article:first-child {
    grid-row: auto;
  }
}

/* TEMPORARY PLACEHOLDER for the logo. The original approved logo image isn't in the repository yet.
   Never redraw it: when the file arrives, replace each .logo-placeholder span with an <img> of the
   original (see the "Logo" note in docs/STUDENT_DEVELOPER_GUIDE.md section 10). */
.logo-placeholder {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px dashed var(--green);
  border-radius: 11px;
  background: #e6f2e8;
  color: var(--green2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
/* Crisis lines on the Get Help page. */
.crisis-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}
.crisis-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 15px;
  padding: 16px 20px;
}
.crisis-line h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.crisis-line p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.crisis-line .btn {
  min-width: 150px;
}

/* Mi Footing approved footprint artwork, recovered from original project logo. */
.logo-placeholder {
  background: #fff url("../mi-footing-mark.svg") center / contain no-repeat;
  border: 0;
  font-size: 0;
  color: transparent;
}

/* Homepage trusted resources and independent external support directory */
.trusted-feature {background: #f0f6ee;}
.trusted-feature-grid {display:grid;grid-template-columns: .9fr 1.1fr;gap:clamp(24px,5vw,65px);align-items:center;}
.trusted-feature-visual {min-height:300px;border-radius:28px;background:radial-gradient(circle at 28% 23%,#f3c83d55,transparent 36%),linear-gradient(145deg,#d7e9d1,#93bd9f);display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:hidden;}
.feature-heart {font-size:4.5rem;filter:drop-shadow(0 15px 13px #1c513a33);}
.feature-sun {position:absolute;top:24px;right:34px;font-size:4rem;color:#f7d768;}
.feature-quote {max-width:270px;margin:20px;padding:15px 20px;text-align:center;font-weight:750;color:#1e5e30;background:#fffffff0;border-radius:14px;box-shadow:0 12px 25px #1b463222;}
.trusted-feature-copy h2 {font-size:clamp(2rem,4vw,3.4rem);line-height:1.13;letter-spacing:-.04em;margin:13px 0;}
.trusted-feature-copy p {color:var(--muted);max-width:570px;}
.trusted-feature-copy .btn {margin-top:12px;}
.trusted-directory {margin-top:45px;}
.support-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:25px 0;}
.support-card {padding:25px;border:1px solid var(--line);border-radius:18px;background:#f9fbf8;display:flex;flex-direction:column;align-items:start;gap:12px;}
.support-card h3 {margin:0;line-height:1.28;}
.support-card p {margin:0;flex:1;color:var(--muted);}
.support-card .btn {font-size:.88rem;}
.support-type {font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--green);}
.source-link {color:var(--green2);text-decoration:underline;font-size:.84rem;font-weight:650;}
.directory-disclaimer {font-size:.85rem;color:var(--muted);border-left:4px solid var(--gold);padding-left:14px;}
@media(max-width:740px){.trusted-feature-grid,.support-grid{grid-template-columns:1fr}.trusted-feature-visual{min-height:230px}.support-card{padding:20px}}

/* Homepage photography enhancements */
.feature-photo,
.story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trusted-feature-visual {
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 35px #183d2a1a;
  background: #dfeadf;
}

.photo-story {
  background: #ffffff;
}

.photo-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.photo-story-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 12px 0 16px;
}

.photo-story-copy p {
  color: var(--muted);
  max-width: 560px;
}

.photo-story-visual {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 35px #183d2a14;
}

/* Make each photo fill its rounded box (the boxes only have a minimum height, so a
   percentage height alone doesn't apply). */
.trusted-feature-visual,
.photo-story-visual {
  position: relative;
}

.feature-photo,
.story-photo {
  position: absolute;
  inset: 0;
}

@media (max-width: 740px) {
  .photo-story-grid {
    grid-template-columns: 1fr;
  }

  .photo-story-visual,
  .trusted-feature-visual {
    min-height: 240px;
  }
}

/* Featured educational reading on the public wellness resources page */
.featured-learning-resource {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
  border: 1px solid #d9e7d8;
  background: linear-gradient(135deg, #f2f8f0 0%, #fffdf5 100%);
}
.featured-learning-resource h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  margin: 12px 0 15px;
}
.featured-learning-resource > p { max-width: 780px; }
.featured-learning-resource .resource-attribution {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: .89rem;
}
.resource-attribution p { margin: 4px 0; }
.featured-learning-resource .btn { margin-top: 4px; }
.featured-learning-resource .note { max-width: 780px; }
