/* MindFlex Health. Plain CSS, no build step.
   Type:   Bricolage Grotesque (headings) + Manrope (text)
   Colors: taken from the logo. Navy is the outline; each of the four services
           gets one of the icon's four quadrant colors (blue, orange, green, purple). */

:root{
  --navy:#16305a;
  --ink:#1c2b43;
  --soft:#566379;
  --line:#dde4ee;
  --bg:#ffffff;
  --tint:#f3f6fb;
  --blue:#1f7fd1;
  --orange:#f2941d;
  --green:#5fb56a;
  --purple:#8a4fb0;
  --display:'Bricolage Grotesque',system-ui,-apple-system,'Segoe UI',sans-serif;
  --body:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --wrap:1080px;
  --radius:10px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-underline-offset:3px}
a:hover{color:var(--blue)}
h1,h2,h3{font-family:var(--display);color:var(--navy);line-height:1.15;letter-spacing:-.01em;margin:0}
h1{font-size:clamp(2.1rem,4.8vw,3.3rem);font-weight:700}
h2{font-size:clamp(1.5rem,2.8vw,2rem);font-weight:700}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem}
/* .narrow keeps text to a readable width while staying lined up with the rest of the page */
.wrap.narrow>*{max-width:760px}
p.narrow{max-width:760px}
section{padding:clamp(2.6rem,6vw,4.5rem) 0}
section.tint{background:var(--tint)}
.lead{font-size:clamp(1.1rem,1.6vw,1.25rem);color:var(--soft);margin-top:1.1rem}
.section-title{margin-bottom:1.6rem}

/* buttons */
.btn{display:inline-block;font-family:var(--body);font-weight:700;font-size:.98rem;text-decoration:none;
  padding:.8rem 1.3rem;border-radius:8px;border:2px solid var(--navy);background:var(--navy);color:#fff}
.btn:hover{background:#0f2444;border-color:#0f2444;color:#fff}
.btn--line{background:transparent;color:var(--navy)}
.btn--line:hover{background:var(--navy);color:#fff}
.btn--light{background:#fff;border-color:#fff;color:var(--navy)}
.btn--light:hover{background:#e8eef7;border-color:#e8eef7;color:var(--navy)}
.actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}

/* header */
.site-header{border-bottom:1px solid var(--line);background:#fff}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.9rem;padding-bottom:.9rem}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;font-family:var(--display);font-weight:700;font-size:1.25rem;color:var(--navy)}
.brand img{width:42px;height:42px;border-radius:22.5%}
.menu{list-style:none;display:flex;align-items:center;gap:1.6rem;margin:0;padding:0}
.menu a{text-decoration:none;font-weight:600;font-size:.98rem;color:var(--ink)}
.menu a:hover,.menu a[aria-current="page"]{color:var(--blue)}
.menu .btn{color:#fff;padding:.55rem 1rem}
.menu .btn:hover{color:#fff}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:.5rem .6rem;color:var(--navy);cursor:pointer}

/* home: opening */
.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hero-logo{width:100%;max-width:320px;justify-self:end;border-radius:22.5%;box-shadow:0 18px 40px rgba(22,48,90,.18)}

/* the four services, laid out like the four quadrants of the logo */
.services{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.service{display:block;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);
  border-top:6px solid var(--navy);border-radius:var(--radius);padding:1.5rem 1.6rem 1.4rem}
.service h3{margin-bottom:.5rem}
.service p{color:var(--soft);font-size:1rem;margin-bottom:.8rem}
.service .more{font-weight:700;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.service:hover{border-color:var(--navy);color:var(--ink)}
.c-blue{border-top-color:var(--blue)}
.c-orange{border-top-color:var(--orange)}
.c-green{border-top-color:var(--green)}
.c-purple{border-top-color:var(--purple)}

/* small colored square that marks a service page */
.chip{display:inline-block;width:18px;height:18px;border-radius:5px;margin-bottom:1rem;background:var(--navy)}
.chip.c-blue{background:var(--blue)}
.chip.c-orange{background:var(--orange)}
.chip.c-green{background:var(--green)}
.chip.c-purple{background:var(--purple)}

/* companies: each logo sits in an equal white tile so mixed logo styles line up */
.clients{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:.9rem}
.clients li{background:#fff;border:1px solid var(--line);border-radius:var(--radius);height:92px;padding:.9rem 1rem;
  display:flex;align-items:center;justify-content:center;gap:.6rem;
  font-family:var(--display);font-weight:700;font-size:1.05rem;color:var(--navy);text-align:center;line-height:1.15}
.clients img{max-height:100%;max-width:100%;width:auto;object-fit:contain;border-radius:6px;min-width:0}

/* team */
.team-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.person{display:flex;gap:1rem;align-items:center}
.person img{width:84px;height:84px;border-radius:50%;object-fit:cover;object-position:center top;flex:none}
.person .name{font-family:var(--display);font-weight:700;color:var(--navy);font-size:1.1rem;line-height:1.25}
.person .role{color:var(--soft);font-size:.95rem}

.bio{display:grid;grid-template-columns:200px 1fr;gap:2rem;padding:2.2rem 0;border-top:1px solid var(--line)}
.bio:first-of-type{border-top:0;padding-top:0}
.bio img{width:200px;height:200px;border-radius:var(--radius);object-fit:cover;object-position:center top}
.bio .role{color:var(--soft);font-weight:600;margin:.2rem 0 .9rem}

/* what each service includes */
.offerings{margin:1.6rem 0 0;padding:0}
.offerings div{display:grid;grid-template-columns:1fr 2fr;gap:1.5rem;padding:1.2rem 0;border-top:1px solid var(--line)}
.offerings dt{font-family:var(--display);font-weight:700;color:var(--navy);font-size:1.08rem;line-height:1.3}
.offerings dd{margin:0;color:var(--ink)}

/* client examples */
.examples{margin:1rem 0 0;padding-left:1.3rem}
.examples li{margin-bottom:.6rem}
.example-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:1.4rem}
.example-grid figure{margin:0}
.example-grid img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius)}
.example-grid figcaption{margin-top:.7rem;font-size:.98rem}

/* closing block and footer */
.closing{background:var(--navy);color:#fff}
.closing h2{color:#fff;max-width:26ch}
.closing p{color:#cfd9ea;margin:.8rem 0 0}
.closing .inner{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center;justify-content:space-between}

.other{list-style:none;margin:1rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1.8rem}
.other a{font-weight:600}

.site-footer{background:#0f2444;color:#cfd9ea;padding:2.6rem 0 1.6rem;font-size:.95rem}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline;color:#fff}
.foot{display:flex;flex-wrap:wrap;gap:2rem 4rem;justify-content:space-between}
.foot .brand{color:#fff}
.foot .tagline{font-family:var(--display);font-weight:600;color:#fff;margin:1rem 0 0}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin-bottom:.4rem}
.foot h4{font-family:var(--body);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#9fb0cb;margin:0 0 .7rem}
.foot-cols{display:flex;flex-wrap:wrap;gap:2rem 4rem}
.copyright{border-top:1px solid rgba(255,255,255,.14);margin-top:2rem;padding-top:1.2rem;color:#9fb0cb;font-size:.88rem}

/* smaller screens */
@media(max-width:820px){
  .nav-toggle{display:block}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);
    flex-direction:column;align-items:flex-start;gap:0;padding:.6rem 1.5rem 1.2rem;z-index:10}
  .site-header{position:relative}
  .site-header.open .menu{display:flex}
  .menu li{padding:.55rem 0}
  .hero-grid{grid-template-columns:1fr}
  .hero-logo{justify-self:start;max-width:180px;order:-1}
  .services,.team-row,.example-grid{grid-template-columns:1fr}
  .clients{grid-template-columns:repeat(2,1fr)}
  .bio{grid-template-columns:1fr;gap:1.2rem}
  .offerings div{grid-template-columns:1fr;gap:.3rem}
}
